Mysql fejl, har gloet mig blind på det
HejsaJeg har følgende query:
mysql_query("INSERT INTO spille_sted (id, navn, billede, scene, hojde, bredde, langde, kommentar, gulv, tilgang, www, kontakt, tilfojet, tilfojetDato, strom, stromHvor, plads, acc, adresse, by) VALUES ('', '$_POST[navn]', '$_POST[billede]', '$_POST[scene]', '$_POST[hojde]', '$_POST[bredde]', '$_POST[langde]', '$kommentar', '$_POST[gulv]', '$_POST[tilgang]', '$_POST[www]', '$kontakt', '$_POST[tilfojet]', '$time', '$_POST[strom]', '$_POST[stromHvor]', '$_POST[plads]', '0', '$adresse', '$_POST[by]')") or die(mysql_error());
Den giver følgende fejl:
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 'by) VALUES ('', 'Test lokale', 'Adressen', 'Nej ', '10', '12',
Kan nogen se en fejl? Har virkelig gloet mig blind på det nu.
