PHP mysql read function error (Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;)

Advertisements This is database. php file: and I am getting fatal error on line 30($result = $stm->execute($data);) The data and query there goes from the read function in the folder named user.class.php and I carry that function with it. Class Database { public static $con; public function __construct() { try{ $string = DB_TYPE .": host="… Read More PHP mysql read function error (Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;)