Try this format so you can see exactly what got submitted to the DB:


$sql = "
INSERT INTO tbLocation(
longitude,
latitude,
timestamp
) VALUES (
$longitude,