$verificatempo = mysql_query("SELECT * FROM logs
WHERE horario <= now() - INTERVAL 10 MINUTE
AND ip = '$ipaddress'
ORDER BY horario desc limit 1");
I'd like to know the date and time format identical to the now () that was used in the mysql line of code for comparison. If possible, it can be an equal code.