PHP Error - 澳门十大赌博网站

澳门十大赌博网站

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections

/home/web_v2/qudao_v3/protected/models/BbsModel.php(116)

104      *
105      */
106 
107     public function findall($tid = '',$limit='5',$typeid=''){
108         $tbname = 'pre_forum_thread';//数据表名
109         $where = '';
110         if($typeid!=''){
111             $where .=' and typeid='.$typeid;
112         }
113         if($tid!=''){
114             $where .=' and fid in ('.$tid.')';
115         }
116         mysql_connect($this->config['host'],$this->config['user'],$this->config['pass']);
117         mysql_select_db($this->config['name']);
118         $sql = "SELECT * FROM `" . $tbname . "` WHERE displayorder = 0 ".$where."  order by tid desc  limit  $limit";
119         //$sql = "SELECT * FROM `" . $tbname . "` WHERE displayorder !='-1' ".$where."  order by tid desc  limit  $limit";
120 //        echo $sql;exit;
121         mysql_query("SET NAMES UTF8");
122         $result = mysql_query($sql);
123 
124         $data = array();
125         if(!empty($result)){
126              while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
127                     $data[] = $row ;
128             }

Stack Trace

#0
+
 /home/web_v2/qudao_v3/protected/models/BbsModel.php(116): mysql_connect("192.168.220.212", "qudao_web", "DXHIQRUTqDksNh93en3U")
111             $where .=' and typeid='.$typeid;
112         }
113         if($tid!=''){
114             $where .=' and fid in ('.$tid.')';
115         }
116         mysql_connect($this->config['host'],$this->config['user'],$this->config['pass']);
117         mysql_select_db($this->config['name']);
118         $sql = "SELECT * FROM `" . $tbname . "` WHERE displayorder = 0 ".$where."  order by tid desc  limit  $limit";
119         //$sql = "SELECT * FROM `" . $tbname . "` WHERE displayorder !='-1' ".$where."  order by tid desc  limit  $limit";
120 //        echo $sql;exit;
121         mysql_query("SET NAMES UTF8");
#1
+
 /home/web_v2/qudao_v3/protected/controllers/IndustrychannelController.php(3955): BbsModel->findall("59", 12)
3950         $forum = new BbsModel();
3951         $fid = array(1 => 64);
3952         if ($data['hyBbsUrl']) {
3953             preg_match('/-(\d+)-/i', $data['hyBbsUrl'], $fid);
3954         }
3955         $data['bbs'] = $forum->findall($fid[1], 12);
3956         //问答
3957         $keyarr = empty($word['synonyms']) ? array() : explode(',',$word['synonyms']);
3958         $keyarr[] = $word['cate_words'];
3959 
3960         $data['question'] = QuestionExt::model()->getListByWmhs($keyarr, 0, 8);
#2
+
 /home/web_v2/qudao_v3/protected/controllers/IndustrychannelController.php(3565): IndustrychannelController->getBbsWd("ganxi", HyWords, array("cssPath" => "http://css1.qudao.com", "imagesPath" => "http://images.qudao.com", "jsPath" => "http://js.7-ing.com", "type" => "ganxi", ...))
3560         if ($count < 10) {
3561             $need = PpItems::model()->findAll(array('condition' => "cate1 = {$hyhotwords['cate_fid']}", 'order' => 'grade asc', 'limit' => 10 - $count));
3562             $assign['top'] = array_merge($assign['top'], $need);
3563         }
3564         //加盟热门问答,加盟论坛
3565         $this->getBbsWd($domain, $hyhotwords, $assign);
3566         //页面seo三要素
3567         $assign['seoTitle'] = "{$hyhotwords['cate_words']}品牌加盟,{$hyhotwords['cate_words']}品牌加盟店, {$hyhotwords['cate_words']}品牌加盟项目-渠道网";
3568         if ($pagesize > 1)
3569             $assign['seoTitle'] .= "_第{$pagesize}页";
3570         $assign['seoKeywords'] = "{$hyhotwords['cate_words']}品牌, {$hyhotwords['cate_words']}品牌加盟,{$hyhotwords['cate_words']}品牌加盟店";
2018-08-21 04:07:17 nginx Yii Framework/1.1.7