[已解决]如何在每三个mysql记录后关闭td tr? [英] [SOLVED] how to close td tr after every three mysql record ?

查看:197
本文介绍了[已解决]如何在每三个mysql记录后关闭td tr?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨:所有朋友我是这个社区的新成员以及php myqsl

i希望了解如何从mysql表中显示三个或两个记录

例如..

mysql表类别有21列,我希望在三个myqsl列之后关闭html标签TD TR。mysql记录应该显示为吼叫

hi : all Friend i am a new member of this comunity as well in php myqsl
i want learn that how to dispaly three or two record from a mysql table
for example ..
mysql table category has 21 columns, and i wish to close html tag TD TR after ever three myqsl columns .the mysql record should be shown as bellow

记录1记录2记录3

推荐答案

如何循环?


echo(" ;< tr>< td>");

echo(记录1);

echo(记录1);

echo (记录1);

echo("< tr>< td>");


然后再循环回来
how about looping?

echo("<tr><td>");
echo( record 1);
echo( record 1);
echo( record 1);
echo("<tr><td>");

Then loop back again


这应该这样做

[PHP] echo"< table"> ;;
This should do it
[PHP]echo "<table">;


i = 0;

while(
i = 0;
while (


这篇关于[已解决]如何在每三个mysql记录后关闭td tr?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆