Home > Backend Development > PHP Tutorial > 横向输出数据php可以实现么解决方法

横向输出数据php可以实现么解决方法

WBOY
Release: 2016-06-13 13:28:07
Original
1275 people have browsed it

横向输出数据php可以实现么
从表中选中某列,然后在前台以横向的方式显示出来,怎么实现

------解决方案--------------------
那不是一样吗?

$rs = mysql_query('select f from tbl_name');
while($r = mysql_fetch_assoc($rs)) {
echo $r['f'];
}
------解决方案--------------------
你的意思是横向循环输出数据库表的一个字段的值对吗?




$a=6;
for($i=0;$i?>
 

}
?>

循环输出
Related labels:
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