while($row=mysql_fetch_array($result)) { $j++"/>
PHP头条
热点:

数据库查询记录php多行多列显示


代码如下:




数据库查询记录多行多列显示

require_once 'include/config.php';
$result=mysql_query("select * from guestbook");
$i=5;
$j=0;
?>



while($row=mysql_fetch_array($result))
{
$j++;
?>

if($j==$i)
{
$j=0;
echo "";
echo "";
}
}
for($k=$i-$j;$k>0;$k--)
{
echo "";
}
?>



www.phpzy.comtrue/php/9612.htmlTechArticle数据库查询记录php多行多列显示 代码如下: 数据库查询记录多行多列显示 require_once 'include/config.php'; $result=mysql_query("select * from guestbook"); $i=5; $j=0; ?> while($row=mysql_fetch_array($result)) { $j++...

相关文章

相关频道:

PHP之友评论

今天推荐