If my database is empty then showing the warning and notice messages on my localhost
<?php
while ($row = mysqli_fetch_array($tasks)){
if (isset($row)){
$rows[] = $row;
}
}
?>
Count is: <?php echo count($rows); ?>
<?php
foreach ($rows as $row_id => $row){
?>
please help me to clear this problem.