Jump to content

creating results related to a date


1internet

Recommended Posts

So I want to run a set of results, fetching rows that have a date that is higher than the current date today.

There is a column called date, so this will be checked for each row against the current date.

Something like

"SELECT * FROM `test` WHERE '$date' > $currentDate"

 

How is this done? i.e. I don't want to show rows that have expired.

Link to comment
https://forums.phpfreaks.com/topic/274603-creating-results-related-to-a-date/
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.