while ( $row = mysql_fetch_array($sql) )
{
echo "<table>";
}
if nothing is found in the database relating to the query
i should get like this
while ( $row = mysql_fetch_array($sql) )
{
if nothing is found in the database
echo "<table no results found>";
}