Code: Select all
array(6) {
[0]=> string(3) "100"
[1]=> string(3) "101"
[2]=> string(3) "102"
[3]=> string(3) "103"
[4]=> string(3) "104"
[5]=> string(3) "105"
}
Modell sieht so aus
Code: Select all
function getListofItems($itemcode, $leaftype, $color)
{
$this->db->select('*');
$this->db->where('itemcode', $itemcode);
if (is_array($leaftype) && count($leaftype) > 0) {
$this->db->where_in('leaftype', $leaftype);
}
if (is_array($color) && count($color) > 0) {
$this->db->where_in('color', $color);
}
$this->db->order_by('flag', 'ASC');
$query = $this->db->get('tbl_search_list');
$return = array();
if ($query->num_rows() > 0) {
return $query->result();
}
}
Mobile version