PHP OOP: execute() function always return null or false
I'm trying to display msg based on the return value of my function in here class Database{ private $host = DB_HOST; private $dbname = DB_NAME; private $user = DB_USER; private $pass = DB_PASS; private $dbh, $error, $stmt; function __construct(){ //…