I'm trying to build a string of an sql statement using vars in javascript.
I got this line code
var sql = "'INSERT INTO UPLOADS (poleID, submitDate, poleDamaged, poleDown, wireDown, brokenFixture, brokenBulb, fullname, phonenumber, email, comments, address, city, state, zipcode, lat, lng) VALUES (" + poleID + "," + submitdate + "," + poleDamaged + "," + poleDown + "," + wireDown + "," + brokenFixture + "," + brokenBulb + "," + fullname + "," phonenumber + "," + email + "," + comments + "," + address + "," + city + "," state + "," + zipcode + "," + lat + "," + "," + lng + ")" + "'";
and my Google Chrome dev tools console is throwing this error and pointing to the line above
Uncaught SyntaxError: Unexpected identifier
Any reason it is throwing this error? All vars are valid.