$Date = date('m/d/Y'); $result = mysql_query('SELECT * FROM service WHERE SType = 'Retreat' and Start_date > '$Date' ');
Start_date format is m/d/y also.
whats wrong with my code? all i want to do is to display all the possible data greater than the current date. but it always show all the data from the database.
Use date(‘Y-m-d’) rather than date(‘m/d/Y’).