PDOException

Description

SQLSTATE[01002] Adaptive Server connection failed (severity 9)

Source File

/www/rmaoregon/protected/Pages/Home.php (12)

0001: <?php
0002: 
0003: class Home extends TPage
0004: {
0005:     public $featProperty;
0006:     public $_data;
0007:     
0008:     public function onLoad($param){
0009:         parent::onLoad($param);
0010:         $sql = "select * from property where featured ='true' and show ='true'";
0011:         //echo($sql);
0012: $dbh= new PDO('dblib:host=ares.matrixdm.com:4100;dbname=rmaoregon', 'rmaoregon','manage');
0013: // $dbh= new PDO('mysql:host=demeter.matrixdm.com;dbname=rmaoregon', 'webserver','w3b53r3r'); 0014: $stmt=$dbh->prepare($sql); 0015: $tmpres=$stmt->execute(); 0016: $this->_data = $stmt->fetchall(PDO::FETCH_ASSOC); 0017: //echo("<br><br>".count($this->_data)); 0018: foreach($this->_data as $key=>$value){ 0019: if($value['thefile1'] == ''){ 0020: $this->_data[$key]['thefile1'] = "nopic.gif"; 0021: } 0022: $this->_data[$key]['rent'] = number_format($this->_data[$key]['rent']); 0023: if($value['beds'] != ""){ 0024: $this->_data[$key]['beds'] = number_format($this->_data[$key]['beds']);

Stack Trace

#0 /www/rmaoregon/protected/Pages/Home.php(12): PDO->__construct('dblib:host=ares...', 'rmaoregon', 'manage')
#1 /www/prado/latest/framework/Web/UI/TControl.php(1240): Home->onLoad(NULL)
#2 /www/prado/latest/framework/Web/UI/TPage.php(206): TControl->loadRecursive()
#3 /www/prado/latest/framework/Web/UI/TPage.php(189): TPage->processNormalRequest(Object(THtmlWriter))
#4 /www/prado/latest/framework/Web/Services/TPageService.php(436): TPage->run(Object(THtmlWriter))
#5 /www/prado/latest/framework/Web/Services/TPageService.php(388): TPageService->runPage(Object(Home), Array)
#6 /www/prado/latest/framework/TApplication.php(1062): TPageService->run()
#7 /www/prado/latest/framework/TApplication.php(381): TApplication->runService()
#8 /www/rmaoregon/index.php(13): TApplication->run()
#9 {main}
2015-07-05 23:55 Apache/2.2.15 (CentOS) PRADO/3.1.0b-Matrix