Код: Выделить всё
function listCategories()
{
$result = $this->db->query("select * from table")->result();
return $result;
}
function listSubCategories($var)
{
$result = $this->db->query("select * from table where field=$var")->result();
return $result;
}
Код: Выделить всё
$data['rows'] = $this->my_model->listCategories();
Как лучше всего справиться с такой ситуацией?>
Подробнее здесь: https://stackoverflow.com/questions/614 ... niter-mode
Мобильная версия