UPDATE actives SET hits = 2056 WHERE id = '1886'
执行错误: 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 />执行错误: " mysql_error());
63.          }
64.      }
65.      
66.      /**
67.       返回影响行数
296.              $value $this->escape($value);
297.              $vals[] = "{$key} = {$value}";
298.          }
299.          $values join(", ",$vals);
300.          $sql "UPDATE {$this->tbl_name} SET {$values} {$where}";
301.          return $this->_db->exec($sql);
302.      }
303.      
304.      /**
305.       替换数据,根据条件替换存在的记录,如记录不存在,则将条件与替换数据相加并新增一条记录。
306.       
288.                $newsObj->update($conditions_gatheringtime,array('gatheringmarker'=>$return_jg,'gatheringtime'=>time()));
289.            }
290.            // 计算相差天数 end
291. 
292.            $conditions_news = array('id' =>$Item_news['id']);
293.            $newsObj->update($conditions_news,array('hits'=>$Item_news['hits']+1));
294. 
295.            $conditions_lib = array( 'ishide' => );
296.            $this->Itemall $libObj->findAll($conditions_lib);
297.            $conditions_links = array( 'cid' => $Item_news['cid']['cid']);
298.            $newslinks $newsObj->findAll($conditions_links,'id desc',null,12);
16.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
17.          eval($GLOBALS['G_SP']["dispatcher_error"]);
18.          exit;
19.      }
20.      // 路由并执行用户代码
21.      $handle_controller->$__action();
22.      // 控制器程序运行完毕,进行模板的自动输出
23.      if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
24.          $__tplname $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
25.                  $__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
26.          $handle_controller->auto_display($__tplname);
53.          ),
54.       )
55.  );
56.  require(SP_PATH."/SpeedPHP.php");
57.  import(APP_PATH.'/controller/tplbasis.php'); // 需要先载入top控制器父类
58.  spRun();