DESCRIBE dy_molds
执行错误: Got error 28 from storage engine
- C:\wwwroot\bjzzzd\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.
}
- C:\wwwroot\bjzzzd\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);
- C:\wwwroot\bjzzzd\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';
- C:\wwwroot\bjzzzd\include\Functions.php on line 301
296.
}
297.
function syDB($tbl_name, $pk = null) {
298.
$modelObj = syClass("syModel");
299.
$modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name : $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
300.
if (!$pk) {
301.
302.
@list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);
$pk = $pk['Field'];
303.
}
304.
$modelObj->pk = $pk;
305.
return $modelObj;
306.
}
- C:\wwwroot\bjzzzd\include\Functions.php on line 666
661.
$c = syDB('custom')->find(array('file' => $file));
662.
return $c;
663.
}
664.
//频道信息获取
665.
function moldsinfo($molds, $q) {
666.
667.
$m = syDB('molds')->find(array('molds' => $molds), null, $q);
return $m[$q];
668.
}
669.
//内容信息获取
670.
function contentinfo($molds, $id, $q) {
671.
$c = syDB($molds)->find(array('id' => $id), null, $q);
- C:\wwwroot\bjzzzd\source\article.php on line 12
7.
class article extends syController {
8.
9.
function __construct() {
10.
parent::__construct();
11.
$this->molds = 'article';
12.
13.
$this->moldname = moldsinfo('article', 'moldname');
$this->sy_class_type = syClass('syclasstype');
14.
$this->Class = syClass('c_article');
15.
$this->db = $GLOBALS['G_DY']['db']['prefix'] . 'article';
16.
$this->en=0;
17.
if($this->syArgs('en')==2){
- C:\wwwroot\bjzzzd\include\Functions.php on line 179
174.
if (null != $args
175.
)for ($i = 0; $i < count($args); $i++) {
176.
$argString .= $comma . "\$args[$i]";
177.
$comma = ', ';
178.
}
179.
180.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
181.
}
182.
syError($class_name . "类定义不存在,请检查。");
183.
}
184.
function curl_get($url) {
- C:\wwwroot\bjzzzd\include\Functions.php on line 13
8.
syError('route Error');
9.
exit;
10.
}
11.
syClass('sysession');
12.
spLaunch("router_prefilter");
13.
14.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"] . '/' . $__controller . ".php");
if (!is_object($handle_controller) || !method_exists($handle_controller, $__action)) {
15.
syError('route Error');
16.
exit;
17.
}
18.
$handle_controller->$__action();
- C:\wwwroot\bjzzzd\index.php on line 6
1.
<?php
2.
require("config.php");
3.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4.
define("IS_MOBILE", 0);
5.
require(DOYO_PATH."/sys.php");
6.
spRun();