DESCRIBE dy_molds
执行错误: Can't create/write to file '/tmp/#sql_4b9_0.MYI' (Errcode: 28)

37.          if( $result mysql_query($sql$this->conn) ){
38.              return $result;
39.          }else{
40.              if(mysql_error()!=''){
41.                  
42.                  syError("{$sql}<br />执行错误: " mysql_error());
43.              }else{
44.                  return TRUE;
45.              }
46.          }
47.      }
3.  class db_mysql {
4.      public $conn;
5.      public $arrSql;
6.      public function getArray($sql)
7.      {
8.          if( ! $result $this->exec($sql) )return array();
9.          if( ! mysql_num_rows($result) )return array();
10.          $rows = array();
11.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
12.          mysql_free_result($result);
13.          array_pop($rows);
51.          return mysql_affected_rows($this->conn);
52.      }
53. 
54.      public function getTable($tbl_name)
55.      {
56.          return $this->getArray("DESCRIBE {$tbl_name}");
57.      }
58. 
59.      public function __construct($dbConfig)
60.      {
61.          $linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' 'mysql_connect';
474. 
475.      $modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name :    $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
476. 
477.      if( !$pk ){
478. 
479.          @list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk $pk['Field'];
480. 
481.      }
482. 
483.      $modelObj->pk $pk;
484. 
970. 
971.  //频道信息获取
972. 
973.  function moldsinfo($molds,$q){
974. 
975.      $m=syDB('molds')->find(array('molds' => $molds),null,$q);
976. 
977.      return $m[$q];
978. 
979.  }
980. 
3.  class product extends syController
4.  {
5.      function __construct(){
6.          parent::__construct();
7.          $this->molds 'product';
8.          $this->moldname=moldsinfo('product','moldname');
9.          $this->sy_class_type=syClass('syclasstype');
10.          $this->Class=syClass('c_product');
11.          $this->db=$GLOBALS['G_DY']['db']['prefix'].'product';
12.      }
13.      function index(){
242. 
243.          $argString '';$comma ''
244. 
245.          if(null != $args)for ($i 0$i count($args); $i ++) { $argString .= $comma "\$args[$i]"$comma ', ';}
246. 
247.          eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);"); 
248. 
249.          return $GLOBALS['G_DY']["inst_class"][$class_name];
250. 
251.      }
252. 
74. 
75.      syClass('sysession');
76. 
77.      spLaunch("router_prefilter");
78. 
79.      $handle_controller syClass($__controllernull$GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
80. 
81.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
82. 
83.          syError('route Error');
84.