Why do I get this PHP error?

top of coding i have this:

$q = "SELECT * FROM property WHERE Prop_beds = '$Prop_beds' AND Prop_type = '$Prop_type' AND Prop_location = '$Prop_location'";

Then this part is reporting an error:

while($row = mysql_fetch_array($q))

What am I doing wrong?
 
Back
Top