Jump to content

[SOLVED] Returning Boolean from Date/Time field


kmaid

Recommended Posts

Hi all,

 

My current PHP project requires me to cache data for 5 minuets after which IF the data is requested again the data needs to be requested from another server.

 

I store the DateTime when the data was last requested and what I would like to do is make an SQL query which returns true/false depending on if 5 minuets have passed since the stored DateTime.

 

Is this possible and are there any examples of this or should I just convert the DateTime into a php date time and do it in PHP?

 

Thanks

Kmaid

 

**EDIT**

My bad didnt read sticky mysql version 5.0.51b-community-nt

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.