$insertSQL = sprintf("INSERT INTO cityairport (city, province, country, cityairport, airportcode, airporticao, citycode, long, lat) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
("'".trim($city)."'"),
("'".trim($province)."'"),
("'".trim($country)."'"),
("'".trim($cityairport)."'"),
("'".trim($airportcode)."'"),
("'".trim($airporticao)."'"),
("'".trim($citycode)."'"),
("'".trim($long)."'"),
("'".trim($lat)."'"));
INSERT INTO cityairport (city, province, country, cityairport, airportcode, airporticao, citycode, long, lat) VALUES ('Buenos Aires', '', 'AR', 'Jorge Newbery Airport', 'AEP', 'SABE', '', -34.558887, -58.415833)
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 'long, lat) VALUES ('Buenos Aires', '', 'AR', 'Jorge Newbery Air