Here is my code and the error keeps coming up. Everything matches the form but I still get the same error. I have tried and in the sql table the lon and lan is number based so I dont know if this could be the issue:
<?php
$n = $_POST["name"];
$t = $_POST["type"];
$c = $_POST["country"];
$r = $_POST["region"];
$lon = $_POST["longitude"];
$lat = $_POST["latitude"];
$des = $_POST["description"];
$conn = new PDO("mysql:host=localhost;dbname=hjaved;", "hjaved","queeTh1d");
$conn->query("INSERT INTO pointsofinterest (name, type, country,
region, lon, lat, description) VALUES ('$n', '$t', '$c', '$r',
'$lon',
'$lat', '$des')");
print_r($conn->errorinfo());
?>
Here is the table shcema:
ID name type country region lon lat description