Warning: mysqli::__construct(): (HY000/2002): Cannot assign requested address in /home/ebrconce/www/liberary/db.php on line 20

Fatal error: Uncaught Error: Call to undefined method mysqli::connect_error() in /home/ebrconce/www/liberary/db.php:23 Stack trace: #0 /home/ebrconce/www/liberary/db.php(31): db->connect() #1 /home/ebrconce/www/liberary/model.php(1394): db->do_query('select * from #...') #2 /home/ebrconce/www/liberary/model.php(224): Model->liste_image_page('1563', 100, 24) #3 /home/ebrconce/www/composants/produit/index.php(93): Model->list_pro('1563') #4 /home/ebrconce/www/composants/produit/index.php(41): produitComponent->main_affichage() #5 /home/ebrconce/www/liberary/controller.php(67): produitComponent->display() #6 /home/ebrconce/www/liberary/factory.php(139): Controller->execute(Object(Site)) #7 /home/ebrconce/www/liberary/framework.php(151): Factory->build_component('produit') #8 /home/ebrconce/www/liberary/framework.php(34): Site->get_component() #9 /home/ebrconce/www/index.php(35): Site->build_site(Object(Site)) #10 {main} thrown in /home/ebrconce/www/liberary/db.php on line 23