I have the following code
if($property == 0) 
			{ 	
		$prop = "WHERE dfrom > ".date('Y-m-d')." ORDER BY dfrom DESC"; // Active only
			} 
		else 
			{ 
		$prop = "WHERE prop_id = ".$property." AND dfrom > ".date('Y-m-d')." ORDER BY dfrom DESC"; // All
			}
		$sql = mysql_query("SELECT * FROM bookings $prop", $db_con)  or die(mysql_error()); 
		$row = mysql_fetch_assoc($sql);// Get records where date from is greater than current date
I am trying to show record in a database which are after the current date. The above code is calling all records.
Does anyone have any suggestions