TPhpErrorException

Description

[Unknown Error] mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead (@line 61 in file /home/repararelcd/public_html/placilcd.ro/protected/Data/Helper/Blog/COLDataModule.php).

Source File

/home/repararelcd/public_html/placilcd.ro/protected/Data/Helper/Blog/COLDataModule.php (61)

0050:                 
0051:             if(($value=$properties->remove('value'))===null)
0052:                 $cnnParams[$id]=$node;
0053:             else
0054:                 $cnnParams[$id]=$value;
0055:         }
0056: 
0057:         $server = $cnnParams['serverhost'];
0058:         if($cnnParams['serverport']!==null && $cnnParams['serverport']!=="")
0059:             $server .= $cnnParams['serverport'];
0060: 
0061: $this->_db = mysql_connect($server, $cnnParams['dbuser'], $cnnParams['dbpass']) or die("could not connect to database server.");
0062: mysql_select_db($cnnParams['dbname'], $this->_db) or die("Could not find database specified."); 0063: } 0064: 0065: public function productTableExists() { 0066: $result = mysql_query("show tables like 'product'", $this->_db) or die ('Error reading database'); 0067: return mysql_num_rows($result) > 0 ? true : false; 0068: } 0069: 0070: public function beginTrans(){ 0071: $result = $this->query('begin'); 0072: } 0073: public function commitTrans(){

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(8192, 'mysql_connect()...', '/home/repararel...', 61, Array)
#1 /home/repararelcd/public_html/placilcd.ro/protected/Data/Helper/Blog/COLDataModule.php(61): mysql_connect('localhost', 'reparare_placid...', 'parola123placid...')
#2 /home/repararelcd/public_html/placilcd.ro/protected/Data/Helper/Blog/COLDataModule.php(16): COLDataModule->connectDatabase()
#3 /home/repararelcd/prado/framework_new/TApplication.php(909): COLDataModule->init(Object(TXmlElement))
#4 /home/repararelcd/prado/framework_new/TApplication.php(956): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#5 /home/repararelcd/prado/framework_new/TApplication.php(370): TApplication->initApplication()
#6 /home/repararelcd/public_html/placilcd.ro/init_framework_for_web.php(9): TApplication->run()
#7 /home/repararelcd/public_html/placilcd.ro/index.php(10): include('/home/repararel...')
#8 {main}
2017-08-18 00:16 Apache PRADO/3.1.7