what i am tring to do it to show a catalog with php and stop php from displaying any data to the cusomer if table does not have any information it.
for example i want to use if state ment to stop and skip if data in the database table does not exist:
$query = "SELECT * FROM Harrow_VH";
$result = mysql_query($query)
or die("Info on your zipcode not found");
if (no data in table exit show this)
{
}
else
{
//if data in db exist then i would display it
}
basically i need to know what i would use in the if statements to stop it from the data base info.
I am bit new to PHP and !result would not work because i think the data in result is set to 1 if there is data in table o not.