exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/hairhk/public_html/header.php:21 Stack trace: #0 /home/hairhk/public_html/header.php(21): PDO->__construct('mysql:host=loca...', 'hairhk', 'vrn84328pa') #1 /home/hairhk/public_html/header.php(8): connectDB() #2 /home/hairhk/public_html/indexHeader.php(12): initialization() #3 /home/hairhk/public_html/index.php(4): include('/home/hairhk/pu...') #4 {main}
Fatal error: Call to a member function prepare() on a non-object in /home/hairhk/public_html/header.php on line 139