ERROR: SQLSTATE[HY000] [2002] Connection timed out
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/mangaat/public_html/include/config.php:7) in /home/mangaat/public_html/global.php on line 18
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/mangaat/public_html/include/config.php:7) in /home/mangaat/public_html/global.php on line 18
Fatal error: Call to a member function prepare() on a non-object in
/home/mangaat/public_html/include/functions.php on line 41
in addition to my above comments session_start should be the very first thing
<?php
session_start();
//Now write rest of your code
?>