How do I change this MySQL query in PHP to only show all listings where a date column called OpenHouseDate in the database is the current day or forward?
$sql_query = "SELECT * FROM listings ORDER BY RAND()";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the OpenHouseDate is of ‘Date’ type then you can use the following:
If the OpenHouseDate is of ‘DateTime’ type then you can use the following:
If the OpenHouseDate is of ‘Integer’ type then you can use the following:
MySQL Date/Time Reference