requete fatal = SELECT c.`id_categorie_photo` FROM `categorie_photo` c WHERE `level`=0 AND `en_ligne`=1 ORDER BY `lft`
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' in /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php:21 Stack trace: #0 /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php(21): PDO->__construct('mysql:host=loca...', 'oyonnax_website', 'wYLnPc4CupG34vt...', Array) #1 /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php(38): DataBase::getConnexion() #2 /var/www/html/jaime-oyonnax.fr/web/class/generate/Categorie_photo.php(169): DataBase::Lecture('SELECT c.`id_ca...', Array) #3 /var/www/html/jaime-oyonnax.fr/web/pages/photo-video/photo-oyonnax.php(14): Categorie_photo::getAllCategorie_photo(' WHERE `level`=...') #4 {main} thrown in /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php on line 21