vendredi 31 juillet 2015

Unknown SQL Error in PHP [duplicate]

This question already has an answer here:

When you run this code

mysqli_query($dbc, "insert into toons values(NULL, $toonId, '$toonName', $admin, '$dna', $bank, $money, $hp, '$inventory', $lastPlace)")

I get the error:

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 ' '', , '', , , , '', )' at line 1

Does anyone know whats going on? Thanks!

Aucun commentaire:

Enregistrer un commentaire