Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 24, 2005, 9:29 am
rate this thread
Re: HELP: SELECT only last last few records that were created within last 5 minutes
Calculate the start time in the program which calls your MySQL
query and pass it in as a parameter.
For example in PHP you would have a statement something like:
$starttime = time() - 300;
and would then use in the call to your retrieval program/function.
time() if the PHP function that returns the current time
300 is the number of seconds in 5 minutes.
- » Emergency ----- Database Emptied - Loss Everything - What can be done??
- — Previous thread in » MySQL Database Forum
- » Americanas.com SALDO de TVs Com at 80% de Desconto (29798)
- — Newest thread in » MySQL Database Forum