You need to check if rows are returned, if not, show an error.
$i = 0;
while($row=mysqli_fetch_array($run)) {
$i++;
}
if ($i <1) {
?>
<tr><td colspan="11">There are no records.</td></tr>
<?php
}
Explanation:
1) We took a variable $iinitialized to0
2) In a while loop, it increases.
3) If we have records, after the while loop we will get $imore than 0.
4) 0 1, , .