欧美综合欧美视频,99久久er热在这里只有精品15,久久国产精品美女,亚洲91av视频

SELECT * FROM appdata WHERE id = '' ORDER BY id LIMIT 1
執(zhí)行錯(cuò)誤: MySQL server has gone away

57.      {
58.          $this->arrSql[] = $sql;
59.          if( $result mysql_query($sql$this->conn) ){
60.              return $result;
61.          }else{
62.              spError("{$sql}<br />執(zhí)行錯(cuò)誤: " mysql_error());
63.          }
64.      }
65.      
66.      /**
67.       返回影響行數(shù)
21.       
22.       * @param sql  執(zhí)行的SQL語(yǔ)句
23.       */
24.      public function getArray($sql)
25.      {
26.          if( ! $result $this->exec($sql) )return array();
27.          if( ! mysql_num_rows($result) )return array();
28.          $rows = array();
29.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.          mysql_free_result($result);
31.          array_pop($rows);
98.          }else{
99.              $sort "ORDER BY {$this->pk}";
100.          }
101.          $sql "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
102.          if(null != $limit)$sql $this->_db->setlimit($sql$limit);
103.          return $this->_db->getArray($sql);
104.      }
105.      /**
106.       過(guò)濾轉(zhuǎn)義字符
107.       *
108.       * @param value 需要進(jìn)行過(guò)濾的值
60.       * @param sort    排序,等同于“ORDER BY ”
61.       * @param fields    返回的字段范圍,默認(rèn)為返回全部字段的值
62.       */
63.      public function find($conditions null$sort null$fields null)
64.      {
65.          if( $record $this->findAll($conditions$sort$fields1) ){
66.              return array_pop($record);
67.          }else{
68.              return FALSE;
69.          }
70.      }
4.      $buydataarrays explode(",",$this->buydata);
5.      $appdataObj spClass("lib_appdata");    // 分類
6.      $total 0;
7.      foreach ($buydataarrays as $value) {
8.          $conditions = array( 'id' => $value );
9.          $Item $appdataObj->find($conditions);
10.          $total $total+$Item['prices'];
11.      }
12.      $this->buydatanum count($buydataarrays)-1;
13.      $this->total $total;
14.      // 購(gòu)物車(chē)
454.          //dump($this->run_pluginobj);
455.          $this->dep_pl_model "0";  // 系統(tǒng)插件鉤子分布查看 1=打開(kāi),0=關(guān)閉
456.          // -------------- 插件模式(2014-4-5增加) end --------------------
457. 
458.          if(file_exists("include/shoppingcart.php")){
459.             require("include/shoppingcart.php"); //引入數(shù)據(jù)庫(kù)
460.          }
461. 
462.         // 列表
463.         $lib_cate spClass("lib_cate");    // 分類
464.         $cate_list $lib_cate->getTyCataList();
144.          }
145.      }
146.      if(FALSE != $has_define){
147.          $argString '';$comma ''
148.          if(null != $args)for ($i 0$i count($args); $i ++) { $argString .= $comma "\$args[$i]"$comma ', '; } 
149.          eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);"); 
150.          return $GLOBALS['G_SP']["inst_class"][$class_name];
151.      }
152.      spError($class_name."類定義不存在,請(qǐng)檢查。");
153.  }
154. 
9.  function spRun(){
10.      GLOBAL $__controller$__action;
11.      // 對(duì)路由進(jìn)行自動(dòng)執(zhí)行相關(guān)操作
12.      spLaunch("router_prefilter");
13.      // 對(duì)將要訪問(wèn)的控制器類進(jìn)行實(shí)例化
14.      $handle_controller spClass($__controllernull$GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
15.      // 調(diào)用控制器出錯(cuò)將調(diào)用路由錯(cuò)誤處理函數(shù)
16.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
17.          eval($GLOBALS['G_SP']["dispatcher_error"]);
18.          exit;
19.      }
53.          ),
54.       )
55.  );
56.  require(SP_PATH."/SpeedPHP.php");
57.  import(APP_PATH.'/controller/tplbasis.php'); // 需要先載入top控制器父類
58.  spRun();
主站蜘蛛池模板: 长兴县| 金湖县| 仙桃市| 长垣县| 镇赉县| 闽侯县| 昂仁县| 徐汇区| 云梦县| 吉林市| 武山县| 武城县| 葵青区| 孟州市| 五常市| 稻城县| 长子县| 阳谷县| 闵行区| 柯坪县| 额济纳旗| 景泰县| 漳浦县| 中超| 嵩明县| 巢湖市| 营山县| 本溪市| 南城县| 砀山县| 石楼县| 新宁县| 普格县| 加查县| 丰台区| 德江县| 鹤山市| 木兰县| 朔州市| 长兴县| 芷江|