I have a user table, where users need to be approved, i want to show users who are not approved and is registered more than 7 days ago.
My user_regdate is a timestam
Primitive solution at best, but im not the best at MySQL time calculation
$timestamp = strtotime("-7 days"); mysql_query("SELECT * FROM users WHERE user_regdate < $timestamp AND approved = 0 ORDER BY id");