Circuito Cinemas

Can't connect to database x.
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /home/circuito/public_html/resources/class.database.php on line 106

Warning: mysqli::query(): Couldn't fetch mysqli in /home/circuito/public_html/resources/class.database.php on line 107

Warning: Database::Query(): Property access is not allowed yet in /home/circuito/public_html/resources/class.database.php on line 108

Warning: mysqli_insert_id(): Couldn't fetch mysqli in /home/circuito/public_html/resources/class.database.php on line 109

Fatal error: Uncaught Error: Call to a member function fetch_object() on bool in /home/circuito/public_html/resources/class.database.php:49 Stack trace: #0 /home/circuito/public_html/resources/class.CINEMAS.php(81): Database->getLista() #1 /home/circuito/public_html/lib/inc/header.php(121): CINEMAS->select_all() #2 /home/circuito/public_html/filmes/filme.php(2): include('/home/circuito/...') #3 {main} thrown in /home/circuito/public_html/resources/class.database.php on line 49