select id,tid,sid,title,style,trait,gourl,addtime,hits,htmlurl,htmlfile,litpic,orders,mrank,mgold,isshow,keywords,description,bianhao,pinpai,tedian,fanwei,gongneng,bianma,bianma2,bianma3,bianma4 from cn_article a left join cn_article_field b on (a.id=b.aid) where isshow=1 and tid in(63) order by rand() limit 0,9
执行错误: Incorrect key file for table 'C:\Windows\TEMP\#sql7b8_34319_8.MYI'; try to repair it
- D:\virtualhost\manyoungcom\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.
}
- D:\virtualhost\manyoungcom\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);
- D:\virtualhost\manyoungcom\include\syModel.php on line 124
119.
return $this->update($conditions, array($field=>$value));
120.
}
121.
122.
public function findSql($sql)
123.
{
124.
125.
return $this->_db->getArray($sql);
}
126.
127.
public function runSql($sql)
128.
{
129.
return $this->_db->exec($sql);
- D:\virtualhost\manyoungcom\include\cache\tpl\article_faq_view.php on line 350
345.
346.
347.
<div class="channel-name">相关文章</div>
348.
<div class="content" >
349.
<ul class="press_list">
350.
351.
<?php $vn=0;$tablev=syClass("syModel")->findSql("select id,tid,sid,title,style,trait,gourl,addtime,hits,htmlurl,htmlfile,litpic,orders,mrank,mgold,isshow,keywords,description,bianhao,pinpai,tedian,fanwei,gongneng,bianma,bianma2,bianma3,bianma4 from cn_article a left join cn_article_field b on (a.id=b.aid) where isshow=1 and tid in(".$type["tid_leafid"].") order by rand() limit 0,9 ");foreach($tablev as $v){ $v["tid_leafid"]=$sy_class_type->leafid($v["tid"]);$v["n"]=$vn=$vn+1; $v["url"]=html_url("article",$v); $v["title"]=stripslashes($v["title"]); $v["description"]=stripslashes($v["description"]); ?>
<li>
352.
<div class="news_title"><a href="<?php echo $v['url'] ?>" title="<?php echo $v['title'] ?>-<?php echo $GLOBALS['S']['keywords'] ?>" ><?php echo $v['title'] ?></a></div>
353.
<div class="news_time"><?php echo date('Y-m-d',$v['addtime']) ?></div>
354.
</li>
355.
<?php } ?>
- D:\virtualhost\manyoungcom\include\Template.php on line 69
64.
if( $enable_gzip==1 ){
65.
GLOBAL $__template_compression_level;
66.
$__template_compression_level=syExt('enable_gzip_level');
67.
ob_start('template_ob_gzip');
68.
}
69.
70.
include $template_tpl;
}
71.
72.
private function template_html($content){
73.
preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
74.
foreach($i[0] as $k=>$v){
- D:\virtualhost\manyoungcom\include\syView.php on line 28
23.
{
24.
try {
25.
$this->addfuncs();
26.
$this->displayed = TRUE;
27.
if($GLOBALS['G_DY']['view']['debugging'] && SP_DEBUG)$this->engine->debugging = TRUE;
28.
29.
$this->engine->display($tplname);
} catch (Exception $e) {
30.
syError( $GLOBALS['G_DY']['view']['engine_name']. ' Error: '.$e->getMessage() );
31.
}
32.
}
33.
- D:\virtualhost\manyoungcom\include\syController.php on line 30
25.
26.
public function display($tplname, $output = TRUE)
27.
{
28.
@ob_start();
29.
if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
30.
31.
$this->v->display($tplname);
}else{
32.
extract($this->__template_vals);
33.
require($tplname);
34.
}
35.
if( TRUE != $output )return ob_get_clean();
- D:\virtualhost\manyoungcom\source\article.php on line 66
61.
$this->positions='<a href="'.$GLOBALS["WWW"].'">首页</a>';
62.
foreach($this->sy_class_type->navi($this->article['tid']) as $v){
63.
$d_pos=syDB('classtype')->find(array('tid'=>$v['tid']),null,'tid,molds,htmldir,htmlfile,mrank');
64.
$this->positions.=' > <a href="'.html_url('classtype',$d_pos).'">'.$v['classname'].'</a>';
65.
}
66.
67.
$this->display('article/'.$this->type['t_content']);
}
68.
function type(){
69.
if($this->syArgs('file',1)!=''){
70.
$this->type=syDB('classtype')->find(' htmlfile="'.$this->syArgs('file',1).'" or tid='.$this->syArgs('file').' ');
71.
$tid = $this->type['tid'];
- D:\virtualhost\manyoungcom\include\Functions.php on line 31
26.
27.
exit;
28.
29.
}
30.
31.
32.
$handle_controller->$__action();
33.
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
34.
35.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
36.
- D:\virtualhost\manyoungcom\index.php on line 5
1.
<?php
2.
require("config.php");
3.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4.
require(DOYO_PATH."/sys.php");
5.
spRun();