I have a PHP search script which queries a MySQL database. Currently, when no results are displayed the script shows and error. How can I make it display a message like \"No
How about a simple counter in the while statement:
$i = 0; while (condition) { $i++; do stuff; } if ($i ==0) {echo 'No results found';}