Jump to content

[SOLVED] Stop Past Dates


dmschenk

Recommended Posts

I have a simple event list that I would like to improve upon but I'm not exactly sure how to go about.

What I would like to do is when a date passes to yesterday I would like to stop displaying it in my events list.

I would also prefer not to delete its existence but change the field "Online = 1" to "Online = 0" in the database.

 

Is this something I can do or is there a better way?  I'm open to any ideas.

 

Here is my current sql statement:


$sql = "SELECT MONTHNAME(Date), EventDesc, Date, EventLocation, Online
FROM calendar 
WHERE Online = 1
ORDER BY Date";

 

Thanks

Dave

Link to comment
https://forums.phpfreaks.com/topic/52218-solved-stop-past-dates/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.