The current issue i am having is with ORDER BY date. For some reason it returns nothing whenever i try to order it by date, my MySQL column is the date datatype. No idea why this is happening. I attempted to try changing the datatype to datetime, but that didn't work. Works fine when I order it by any of my other fields, be it varchar, decimal, or int.
Thanks for common sense for the error handling options. I go this back. SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Release' at line 1
function getAllGames() { //Returns all database values, sorted by name then score.
    try {
        $db = getDBConnection();
        $query = "SELECT * FROM game ORDER BY Release";
        $statement = $db->prepare($query);
        $statement->execute();
        $results = $statement->fetchAll();
        $statement->closeCursor();
        return $results;           // Assoc Array of Rows
    } catch (PDOException $e) {
        $errorMessage = $e->getMessage();
        include '../view/errorPage.php';
        die;
    }       
}
 
     
    