Answer the question
In order to leave comments, you need to log in
How to display from the database page by page in netcat?
According to the instructions, I do this in the design layout:
$nc_core = nc_Core::get_object();
// Пример №1
// Запрос к таблице БД
// Используется ассоциативный массив
// Третий параметр не указан и по умолчанию равен 0
$res = $nc_core->db->get_row("SELECT * FROM `tab`", ARRAY_A );
if (!empty($res)) {
foreach ($res as $row) {
// Последовательно выводятся каждое из полей строки
echo "<p>".$row['id']."</p> <br>" ;
}
}
browse_messages($res, 15);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question