I have two tables in my database
articles
With the following fields
id author post_date modification title section_id views featured content post_status
sections
With the following fields
sec_id Описание категория слизняка < /li>
< /ul>
У меня есть функция в моей модели, чтобы вернуть все разделы < /p>
function get_all() {
$q = $this->db->select('sec_id,category,slug,description')
->from('sections')
->order_by('category','asc');
$ret['rows'] = $q->get()->result();
return $ret;
}
< /code>
Am отобразить это в таблице < /p>
Подробнее здесь: https://stackoverflow.com/questions/672 ... ated-table
Как подсчитать количество строк в соответствующей таблице [дублировать] ⇐ Php
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение