Uncaught PDOException: Syntax error or access violation: You have an error in your SQL syntax
Advertisements I’m struggling trying to query a database inside of a PHP class. I’m getting an error when trying to echo out the email address. I’m new to classes and can’t seem to get this to work but if I do a normal PHP function, it works fine. // using composer autoload.php $user = new… Read More Uncaught PDOException: Syntax error or access violation: You have an error in your SQL syntax