Forum Moderators: coopster
Thanks for posting! That code looks perfect to me, are you having trouble with it or just posting for others with the same issue?
Incidentally (since we're in the PHP forum) you can also generate the date string to send to mysql with something like:
$sql = "SELECT * FROM `table` WHERE `created` >= '".date("Y-m-d H:i:s", strtotime("-1 hour"))."'";