How can I return false if 0 rows affected with PDO?
I have this method to execute a SQL query,
public function executeSQL($query, $params = array()) {
Try this
return $stmt->rowCount() > 0;