Error

Description

Call to undefined function mysql_connect()

Source File

/homepages/9/d775592270/htdocs/solidarios/protected/classes/database/bd.php (75)

0064:     }
0065: 
0066:     function __destruct() {
0067:     //el destructor se ejecuta antes de cerrar la ejecucion y con esto cerramos la conexion a la base de datos
0068:         $this->x();
0069:     }
0070: 
0071: 
0072:     function __construct($debug=0) {
0073:     //al llamarla conecta directametne a la base de datos
0074:         $this->debug = $debug;
0075: $this->conn = @mysql_connect($this->servidor, $this->usuari, $this->clau) or $this->error_mysql(mysql_error());
0076: mysql_select_db($this->nomBD) or $this->error_mysql(mysql_error()); 0077: } 0078: } 0079: ?>

Stack Trace

#0 /homepages/9/d775592270/htdocs/solidarios/protected/pages/Home.php(11): bd->__construct()
#1 /homepages/9/d775592270/htdocs/solidarios/protected/pages/Home.php(6): Home->cargarNoticias()
#2 /homepages/9/d775592270/htdocs/solidarios/protected/framework/Web/UI/TControl.php(1270): Home->onInit(NULL)
#3 /homepages/9/d775592270/htdocs/solidarios/protected/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Home))
#4 /homepages/9/d775592270/htdocs/solidarios/protected/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#5 /homepages/9/d775592270/htdocs/solidarios/protected/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#6 /homepages/9/d775592270/htdocs/solidarios/protected/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#7 /homepages/9/d775592270/htdocs/solidarios/protected/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#8 /homepages/9/d775592270/htdocs/solidarios/protected/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(Home), Array)
#9 /homepages/9/d775592270/htdocs/solidarios/protected/framework/TApplication.php(1095): TPageService->run()
#10 /homepages/9/d775592270/htdocs/solidarios/protected/framework/TApplication.php(382): TApplication->runService()
#11 /homepages/9/d775592270/htdocs/solidarios/index.php(19): TApplication->run()
#12 {main}
2019-11-22 19:56 Apache PRADO/3.1.7