Trying to display a message, when there are no results found.
<?php
mysql_connect ("localhost", "root","") or die (mysql_error());
mysql_select_db ("test");
$term = $_POST['term'];
$sql = mysql_query("select * from testable where FName like '%$term%' or LName like '%$term%' or ID like '%$term%' ");
while ($row = mysql_fetch_array($sql)) {
echo '<br/>First Name:'.$row['FName'];
echo '<br/>Last Name:'.$row['LName'];
echo '<br/>Phone:'.$row['Phone'];
echo '<br/><br/>';
}
?>