Salve a tutti, ho provato ad eseguire la seguente query con php:
Il problema è che una volta che la eseguo mi viene fuori questo errore:Codice PHP:$sql = "INSERT INTO missioni(id_giocatore, inizio, fine) VALUES ( ".$id_giocatore.", now() , dateadd(now(), interval ".$min_missione." minutes))";
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 '(now(), interval 10 minut))' at line 1
Ho provato anche a stampare la query per vedere cosa conteneva ed eccola qua:
Qualcuno riesce a dirmi dove è l'errore ?Codice HTML:INSERT INTO missioni(id_giocatore, inizio, fine) VALUES ( 39, now() , dateadd(now(), interval 10 minutes))

LinkBack URL
About LinkBacks


