<?php require_once("mysitedb.php");
$note_id = $_GET['note'];
$query_notes = "SELECT created, title, article FROM notes WHERE id = $note_id";
$sel_note = mysqli_query($link, $query_notes);
while ($note = mysqli_fetch_array($sel_note))
{
echo $note ['created'], "<br>";
echo $note ['title'], "<br>";
echo $note ['article'], "<br>";
}
$query_comments = "SELECT * FROM comments WHERE art_id = $note_id";
$s_note = mysqli_query($link, $query_comments);
while ($n = mysqli_fetch_array($s_note))
{
if(isset($query_comments))
echo $n ['comment'], "<br>";
else
echo "Эту запись еще никто не комментировал";
}
?>
Выходит такая ошибка
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\OpenServer\domains\localhost\lab sql\comments.php on line 5
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\OpenServer\domains\localhost\lab sql\comments.php on line 13