Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

where statement multiple argument in codeigniter

Associative array method:
$array = array('name' => $name, 'title' => $title, 'status' => $status);

$this->db->where($array); 

// Produces: WHERE name = 'Joe' AND title = 'boss' AND status = 'active'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #statement #multiple #argument #codeigniter
ADD COMMENT
Topic
Name
6+5 =