$strQuery="select id,title,post_time from titles where column_id=$k and status='Y' order by id desc";
$db->query($strQuery);
//===取出数据===
$i=0;
while ($db->next_record() && $i<30) {
list($id,$title,$post_time)=$db->Record;
$show_time=substr($post_time,0,10); // $show_time=date("m-d",$post_time);
echo "· $title [$show_time]
";
$i++;
}
if ($db->num_rows()>20){echo "
更多...
";}
$j++;
?>