I am new to Stackoverflow ( new to asking questions that is, i have been using advice and help from questions not asked by myself and i want to thank for that.)
But to cut straight to the chase, i have an mysql error and have been changing ” to ‘ and used a lot of escaping methods, but i still keep getting mysql errors.
It is a syntax 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 ‘condition,district,gender_allowed,interior,internet,max_nr_people,mediation_cost’ at line 1
INSERT INTO kamerfeed (title
,link
,description
,minimum_price
,daisycon_unique_id
,category
,internal_id
,address
,area
,city
,condition
,district
,gender_allowed
,interior
,internet
,max_nr_people
,mediation_costs
,own_kitchen
,own_shower
,pets_allowed
,smoking_allowed
,toilet
,zipcode
,source)
VALUES
(
"Kamer Abersonlaan, Wageningen"
,"http://ds1.nl/c/?wi=162822&si=1271&li=1234742&dl=details-kamer-abersonlaan-in-wageningen%2F125379.html&ws="
,"Royale kamer met balkon op het oosten. Gedeelde woonkamer met balkon op het westen, eetkeuken, badkamer met douche, bad, wastafel, toilet en wasmachine. Eigen koelkast. Neem contact op, ook als de huur hoog lijkt. Kijken kost niets!..."
,"550.00","Df18a0377e4b0f8d53fa068cbb006ba49"
,"Kamers in Wageningen"
,"125379"
,"Abersonlaan"
,"26"
,"Wageningen"
,"Goed"
,"Ja"
,"Man"
,"Gemeubileerd"
,"Ja"
,"1"
,"nee"
,"Gedeeld"
,"Gedeeld"
,"Ja"
,"Ja"
,"Gedeeld"
,"6703GE"
,"kamer"
)
i have been trying for more than an hour now, but i still cant figure out whats wrong with is. It is probably something easy, but i cant seem to find out myself.
thanks in advance.
You seem to be missing a comma at
zipcode:And
conditionis a reserved word, place back-ticks around it:See SQL Fiddle with Demo