Jump to content

Check if field date has passed.


only1perky

Recommended Posts

Hi Guys,

 

Can you please help me out because I really don't know where to start.

 

I have a page displaying current events and one displaying future events.

My database table "events" contains fields for the start date and the end date (both stored a date).

 

What I would like to do is have my code sort which rows have started already, which are yet to start and maybe even delete the ones which have passed.

 

Can someone advise me on how to do this so i can query the database and automatically update both current and future events pages.

 

Cheers.

Link to comment
https://forums.phpfreaks.com/topic/147238-check-if-field-date-has-passed/
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.