This question already has an answer here:
I have a problem here is my page which i getting the error from
<?php
// retrive post
include('config.php');
include ('function.php');
dbConnect();
$query = mysqli_query($GLOBALS["___mysqli_ston"],
'SELECT *
FROM post
WHERE post_id = 1');
$row = mysqli_fetch_array($query);
?>
and the error is showing this line
$row = mysqli_fetch_array($query);
and the second error is in this code
<div class="comment-block">
<?php while($comment = mysqli_fetch_array($comment_query)): ?>
<div class="comment-item">
<div class="comment-avatar">
<img src="<?php echo avatar($comment['mail']) ?>" alt="avatar">
</div>
<div class="comment-post">
<h3><?php echo $comment['name'] ?> <span>said....</span></h3>
<p><?php echo $comment['comment']?></p>
</div>
</div>
<?php endwhile?>
</div>
error line is this
<?php while($comment = mysqli_fetch_array($comment_query)): ?>
pleas help me i am very new to mysqli
</div>