<<<____SQL
SELECT * FROM `audit` ORDER BY `id` DESC LIMIT 100
____SQL;
$data = [];
$res = $con->query($sql);
foreach ($res as $item){
$data[] = $item;
}
print_r($data);
}
Получаю ошибку Fatal error: Uncaught Error: Call to a member function query() on null in
$con == null
Обсуждают сегодня