How to prepare SQL statement with POINT using mysqli when using INSERT
问题 I can't seem to find where documented to successfully prepare a statement that uses the POINT data type. This previous question (How to use POINT mysql type with mysqli - php) shows something marked as correct, but it doesn't work. I even tried using their simple query in their example: $stmt = $this->conn->prepare("INSERT INTO days(day,POINT(lat,lon)) VALUES(?,?,?)"); $stmt->bind_param("sdd", $day, $lat, $lon); This just simply returns and error: You have an error in your SQL syntax; check