时间:2021-07-01 10:21:17 帮助过:5人阅读
'.$k.' | '.$k.' |
'.$k.' | '."\r\n";
$sql = "select * from table ";
$query = mysql_query($sql);
$num = mysql_num_rows($query);
for($i=0;$i <$num;$i++) {
$result = mysql_fetch_array($query);
if($i%3==0){
$str.= ""; ";
}
$str.= "".$result[ "title "]. " ";
if(($i+1)%$num==0) {
$str.= "
}
}
?>