Home > Backend Development > PHP Tutorial > 2013 National Computer Grade Examination Score Query Database Query Record PHP Multi-row and Multi-Column Display

2013 National Computer Grade Examination Score Query Database Query Record PHP Multi-row and Multi-Column Display

WBOY
Release: 2016-07-29 08:40:30
Original
1196 people have browsed it

复制代码 代码如下:






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

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 "";
}
?>




以上就介绍了2013年全国计算机等级考试成绩查询 数据库查询记录php 多行多列显示,包括了2013年全国计算机等级考试成绩查询方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template