DESCRIBE dy_classtype
執行錯誤: Can't create/write to file 'C:\Users\NpointMYSQL_W1\AppData\Local\Temp\#sql_7fc_0.MYD' (Errcode: 13)
- E:\clientweb\qifujixie0\web\include\mysql.php on line 39
34.
$this->arrSql[] = $sql;
35.
if( $result = mysql_query($sql, $this->conn) ){
36.
return $result;
37.
}else{
38.
if(mysql_error()!=''){
39.
40.
syError("{$sql}<br />執行錯誤: " . mysql_error());
}else{
41.
return TRUE;
42.
}
43.
}
44.
}
- E:\clientweb\qifujixie0\web\include\mysql.php on line 8
3.
class db_mysql {
4.
public $conn;
5.
public $arrSql;
6.
public function getArray($sql)
7.
{
8.
9.
if( ! $result = $this->exec($sql) )return array();
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);
- E:\clientweb\qifujixie0\web\include\mysql.php on line 53
48.
return mysql_affected_rows($this->conn);
49.
}
50.
51.
public function getTable($tbl_name)
52.
{
53.
54.
return $this->getArray("DESCRIBE {$tbl_name}");
}
55.
56.
public function __construct($dbConfig)
57.
{
58.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
- E:\clientweb\qifujixie0\web\include\Functions.php on line 210
205.
206.
function syDB($tbl_name, $pk = null){
207.
$modelObj = syClass("syModel");
208.
$modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name : $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
209.
if( !$pk ){
210.
211.
@list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk = $pk['Field'];
}
212.
$modelObj->pk = $pk;
213.
return $modelObj;
214.
}
215.
- E:\clientweb\qifujixie0\web\source\article.php on line 65
60.
syClass('symember')->p_v($this->type['mrank']);
61.
}
62.
$this->type=array_merge($this->type,array('tid_leafid'=>$this->sy_class_type->leafid($this->article['tid'])));
63.
$this->positions='<a href="'.$GLOBALS["WWW"].'">首頁</a>';
64.
foreach($this->sy_class_type->navi($this->article['tid']) as $v){
65.
66.
$d_pos=syDB('classtype')->find(array('tid'=>$v['tid']),null,'tid,molds,htmldir,htmlfile,mrank');
$this->positions.=' > <a href="'.html_url('classtype',$d_pos).'">'.$v['classname'].'</a>';
67.
}
68.
$this->display('article/'.$this->type['t_content']);
69.
}
70.
function type(){
- E:\clientweb\qifujixie0\web\include\Functions.php on line 16
11.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
12.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
13.
syError('route Error');
14.
exit;
15.
}
16.
17.
$handle_controller->$__action();
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
18.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
19.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
20.
$handle_controller->auto_display($__tplname);
21.
}
- E:\clientweb\qifujixie0\web\index.php on line 26
21.
$doyoConfig['ext']['view_themes'] = $_GET['theme'];
22.
setcookie('theme', $doyoConfig['ext']['view_themes']);
23.
}*/
24.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
25.
require(DOYO_PATH."/sys.php");
26.
spRun();