Hello All,
I am trying to run a SQL query that is based on a date. I am not sure how to do this. Here is the basic query that works:
$result=@mysql_query("SELECT * FROM mytable WHERE thedate IS NOT NULL ORDER BY thedate");
Now what I want to add is a AND part that says the thedate must be greater than today. How would I go about doing this? In other words I do not want dates that have already past.
Is there a way to limit this to just one record?
Thanks,
Zych
I am trying to run a SQL query that is based on a date. I am not sure how to do this. Here is the basic query that works:
$result=@mysql_query("SELECT * FROM mytable WHERE thedate IS NOT NULL ORDER BY thedate");
Now what I want to add is a AND part that says the thedate must be greater than today. How would I go about doing this? In other words I do not want dates that have already past.
Is there a way to limit this to just one record?
Thanks,
Zych