Jump to content

Query with a range


EchoFool

Recommended Posts

I have been searching around to find a simple example of how to make a query with a date range... say like:

 

between november 10th 2007 to january 7th 2008 with in the query...but using the date("Y-m-d H:i:s",time()); format to do it.

 

Though i could not find anything for it, not sure if im just putting long winded words into search boxes which comes up with nothing relevant... has any one got a link for me to see one or could you show me a simple example of how it is done?

 

Thankyou

Link to comment
https://forums.phpfreaks.com/topic/96920-query-with-a-range/
Share on other sites

the user inputs the dates to see logs between certain times...

 

When they pickthe dates in the form it puts it into a format :

 

$Start = //user input  format of date("Y-m-d H:i:s",time());

$End = //user input    format of date("Y-m-d H:i:s",time());

 

Then with the 2 variables some how put them into the query.

Link to comment
https://forums.phpfreaks.com/topic/96920-query-with-a-range/#findComment-495940
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.