Error

Description

Call to undefined function mysql_connect()

Source File

/var/www/Competition/bnpc2007/Qualification/protected/common/MySqlData.php (13)

0002: class MySqlData extends TModule
0003: {
0004:     private $mConn;
0005:     private $mDb;
0006:     private $host="localhost";
0007:     private $user="bnpc";
0008:     private $password="bnpc";
0009:     private $dbname="bnpccs";
0010: 
0011:     public function Connect()
0012:     {
0013: $this->mConn=mysql_connect($this->host,$this->user,$this->password);
0014: $this->mDb=mysql_select_db($this->dbname,$this->mConn); 0015: } 0016: public function ExecuteQuery($param) 0017: { 0018: $result = mysql_query($param,$this->mConn); 0019: 0020: return $result; 0021: } 0022: public function Close() 0023: { 0024: if(is_resource($this->mConn)) 0025: {

Stack Trace

#0 /var/www/Competition/bnpc2007/framework/TComponent.php(417) : eval()'d code(4): MySqlData->Connect()
#1 /var/www/Competition/bnpc2007/framework/TComponent.php(417): eval()
#2 /var/www/Competition/bnpc2007/framework/Web/UI/TControl.php(2213): TComponent->evaluateStatements('$freeze=false;\r...')
#3 /var/www/Competition/bnpc2007/framework/Web/UI/TControl.php(1233): TCompositeLiteral->evaluateDynamicContent()
#4 /var/www/Competition/bnpc2007/framework/Web/UI/TControl.php(1231): TControl->preRenderRecursive()
#5 /var/www/Competition/bnpc2007/framework/Web/UI/TControl.php(1231): TControl->preRenderRecursive()
#6 /var/www/Competition/bnpc2007/framework/Web/UI/TControl.php(1231): TControl->preRenderRecursive()
#7 /var/www/Competition/bnpc2007/framework/Web/UI/TPage.php(196): TControl->preRenderRecursive()
#8 /var/www/Competition/bnpc2007/framework/Web/UI/TPage.php(174): TPage->processNormalRequest(Object(THtmlWriter))
#9 /var/www/Competition/bnpc2007/framework/Web/Services/TPageService.php(458): TPage->run(Object(THtmlWriter))
#10 /var/www/Competition/bnpc2007/framework/TApplication.php(998): TPageService->run()
#11 /var/www/Competition/bnpc2007/framework/TApplication.php(350): TApplication->runService()
#12 /var/www/Competition/bnpc2007/Qualification/index.php(20): TApplication->run()
#13 {main}
2024-04-26 11:15 nginx/1.14.0 PRADO/3.0.7