PDOException: SQLSTATE[HY000] [2002] No such file or directory in /home/safe/www/rec/libs/pdo2.php:25 Stack trace: #0 /home/safe/www/rec/libs/pdo2.php(25): PDO->__construct('mysql:dbname=re...', 'rec', '4m420n33') #1 /home/safe/www/rec/models/rec.php(12): DBO::getInstance() #2 /home/safe/www/rec/layout/header.php(19): Rec->__construct() #3 /home/safe/www/rec/index.php(82): include('/home/safe/www/...') #4 {main}
( ! ) Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/safe/www/rec/models/rec.php on line 21
( ! ) Error: Call to a member function prepare() on null in /home/safe/www/rec/models/rec.php on line 21
Call Stack
#TimeMemoryFunctionLocation
10.0001357888{main}( ).../index.php:0
20.0007373072include( '/home/safe/www/rec/layout/header.php ).../index.php:82
30.0010373528Rec->count_recs( ).../header.php:20