Hi, I have an upload image script in place and would like it so that sers can only add one image per hour.
am i right in thinking i need to insert the date and time into the database when they upload an image, and when they go to add anotherone i would need to pull the date of their last one from the database and see if it was atleast an hour before this one?
Soething like
$current= date("H:i:s");
$last=("SELECT last FROM users WHERE username='$_POST['username']");
$res=mysql_query($last);
Then i get stuck with the if and thats what i need help with.