Salve! Allora, io ho questa query :
dove $autoreLibro è ovviamente un array. Però quando la vado a eseguire mi da questo errore:Codice PHP:for ($i = 0; $i < count ($autoreLibro); $i++) {
$inser_autore = mysql_query("INSER INTO libri_persone (IDpersona, IDlibro) VALUES ($autoreLibro[$i], $fetch_ID[IDlibro]")
or die(mysql_error());
};
e non capisco perché :berto: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 'INSER INTO libri_persone (IDpersona, IDlibro) VALUES (12, 63' at line 1
Potete aiutarmi? Grazie

Rispondi quotando