Salve a tutti ho questo script:
Codice PHP:
$_SESSION["IP_JR"]=trim($_SERVER['REMOTE_ADDR']);
$entrata=date("H:i:s");
$gg=date("d");
$mm=date("m");
$yy=date("Y");
mysql_query("Insert Into statistiche (OraEntrata,Giorno,Mese,Anno) values ('$_SESSION[IP_JR]',$entrata,'$gg','$mm','$yy')") or die (mysql_error());
ma mi da questo errore:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':16:23,'19','09','2009')' at line 1
Perchè manca l'ora??? E perche di questo errore????