Questo il campoOriginariamente inviato da Attaccabottone
non mi è molto chiara l'istruzione SQL per convertire la data in unix_timestamp
$sql="INSERT INTO $tabella (timestamp) VALUES('unix_timestam=(NOW)')";
Merci!!
ALTER TABLE $tabella ADD timestamp INT(10) UNSIGNED NOT NULL
questa la query:
Essendo una funzione non deve avere le virgolette come invece vorrebbe una stringa.codice:$sql = "INSERT INTO $tabella (timestamp) VALUES (UNIX_TIMESTAMP(NOW()))";
Azz... hai modificato tre volte il post mentre scrivevo.....


Rispondi quotando