Error mysql:

Imposible conectar con la base de datos. DebugInfo: Array ( [0] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php [line] => 116 [function] => error [class] => db [object] => db Object ( [host] => localhost [user] => ibarrapr_sistema [pass] => chocobr [name] => ibarrapr_chocoibarra [conn] => [last] => ) [type] => -> [args] => Array ( [0] => Imposible conectar con la base de datos. ) ) [1] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php [line] => 387 [function] => connect [class] => db [object] => db Object ( [host] => localhost [user] => ibarrapr_sistema [pass] => chocobr [name] => ibarrapr_chocoibarra [conn] => [last] => ) [type] => -> [args] => Array ( ) ) [2] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/productos-ibarra.php [line] => 7 [args] => Array ( [0] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php ) [function] => require ) )

Error mysql:

Imposible seleccionar la base de datos. DebugInfo: Array ( [0] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php [line] => 132 [function] => error [class] => db [object] => db Object ( [host] => localhost [user] => ibarrapr_sistema [pass] => chocobr [name] => ibarrapr_chocoibarra [conn] => [last] => ) [type] => -> [args] => Array ( [0] => Imposible seleccionar la base de datos. ) ) [1] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php [line] => 118 [function] => select_db [class] => db [object] => db Object ( [host] => localhost [user] => ibarrapr_sistema [pass] => chocobr [name] => ibarrapr_chocoibarra [conn] => [last] => ) [type] => -> [args] => Array ( ) ) [2] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php [line] => 387 [function] => connect [class] => db [object] => db Object ( [host] => localhost [user] => ibarrapr_sistema [pass] => chocobr [name] => ibarrapr_chocoibarra [conn] => [last] => ) [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/productos-ibarra.php [line] => 7 [args] => Array ( [0] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php ) [function] => require ) )
            
Warning: mysql_error() expects parameter 1 to be resource, boolean given in /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php on line 200

Error mysql:

DebugInfo: Array ( [0] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/inc/db.php [line] => 200 [function] => error [class] => db [object] => db Object ( [host] => [user] => [pass] => [name] => ibarrapr_chocoibarra [conn] => [last] => ) [type] => -> [args] => Array ( [0] => ) ) [1] => Array ( [file] => /home/ibarrapr/public_html/chocoibarra.com.mx/productos-ibarra.php [line] => 96 [function] => query [class] => db [object] => db Object ( [host] => [user] => [pass] => [name] => ibarrapr_chocoibarra [conn] => [last] => ) [type] => -> [args] => Array ( [0] => select * from productos where prod_activo=1 and (prod_sitio=2 or prod_sitio=1) ) ) )