?? view1.php
字號(hào):
<?php
include("header.inc");
$query=mysql_query("select count(*) from news1");
$array=mysql_fetch_row($query);
$i=$array[0];
$j=0;
$query=mysql_query("select * from news1");
while($array=mysql_fetch_row($query)){
$mc1[$j]=$array[0];
$mc2[$j]=$array[1];
$j++;
}
$j=0;
$o=0;
$p=1;
echo "document.write('";
while($i){
$query=mysql_query("select newbt,newxlh,newdjcs from news where newlx='$mc2[$j]' order by newdate desc,newtime desc limit $o,1");
$array=mysql_fetch_row($query);
echo '【<a href="http://172.21.76.9/php/news/xwzx.php?lx='.$mc2[$j].'&page=1" target="_blank">'.$mc1[$j].'</a>】 ';
echo '<a href="http://172.21.76.9/php/news/list1.php?newxlh='.$array[1].'" target="_blank">'.$array[0].'</a><font color="red">('.$array[2].')</font><br>';
$j++;
if($j==$i){
$j=0;
$o++;
}
$p++;
if($p>$tm){
break;
}
}
echo "');";
?>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -