|
$sql_gd="select id,title,jianj from article where `classID`=6 order by Rand() limit 11 ";
$rs_gd=mysql_query($sql_gd);
$cre_gd=mysql_fetch_array($rs_gd);
?>
|
|
=cutstr($cre_gd["jianj"],160)?>...
|
|
|
$sql_hy="select id,title,time from articles where `classID`>3 order by id desc limit 9 ";
$rs_hy=mysql_query($sql_hy);
while ($cre_hy=mysql_fetch_array($rs_hy)){
?>
=date("m/d",$cre_hy["time"])?>
}
?>
$sql_hy="select id,title,time from articles where `classID`=2 order by id desc limit 9 ";
$rs_hy=mysql_query($sql_hy);
while ($cre_hy=mysql_fetch_array($rs_hy)){
?>
=date("m/d",$cre_hy["time"])?>
}
?>
$sql_hy="select id,title,time from articles where `classID`=3 order by id desc limit 9 ";
$rs_hy=mysql_query($sql_hy);
while ($cre_hy=mysql_fetch_array($rs_hy)){
?>
=date("m/d",$cre_hy["time"])?>
}
?>
|
|
|