Ciao ragazzi,
ho un problema che non riesco a risolvere da più di tre ore... spero che qualcuno possa aiutarmi!!!
Devo inserire alcuni dati all'interno di un db MySQL. La stringa è questa:
Codice PHP:
INSERT INTO hatplayers VALUES ('90039324','Reitze','Markus','18','Nederland','6','3','4','3','1','4','','1810','6','4','2','8','1','5','3','4','20060813','')
Se eseguo questa scritta tramite codice PHP utilizzando la funzione mysql_query() ottengo 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 '\'90039324\',\'Reitze\',\'Markus\',\'18\',\'Neder land\',\'6\',\'3\',\'4\',\'3\',' at line 1
Ho anche utilizzato la funzione stripslashes() ma ciò non ha cambiato il risultato!
Se invece, la stessa identica stringa, la passo direttamente in PHPMyAdmin (sezione SQL) non ottengo nessunissimo problema.
A cosa può essere legata questa differenza?
Grazie!