Jump to content

[SOLVED] Date function help


psychowolvesbane

Recommended Posts

Okay I want to know how I can use the date function to query against records in a table, and to show only records that are 2 weeks old compared to todays date.

 

So the table record is set to date(Y-m-d), so how do I go about comparing it with the current date and finding any records older than 14 days old? I don't need to worry about the sql, just get it so there is a variable to compare against. 

Link to comment
https://forums.phpfreaks.com/topic/103209-solved-date-function-help/
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.