作者appleshark (苹果鲨)
看板PHP
标题[请益] 请问如何回圈出不重复ID流水号?
时间Fri May 29 10:16:46 2015
小弟PHP新手 不才请问各位大大~我要回圈一段html 但是表内有多笔资料(流水号)
while(LIST($A,$B,$C) = mysql_fetch_row()){
<div class="tab-content">
<div class="xxxx">
html<?=$A;?>html
html<?=$B;?>html
html<?=$C;?>html
</div>
<div class="xxxx">
html<?=$A;?>html
html<?=$B;?>html
html<?=$C;?>html
</div>
<div class="xxxx">
html<?=$A;?>html
html<?=$B;?>html
html<?=$C;?>html
</div>
<div class="xxxx">
html<?=$A;?>html
html<?=$B;?>html
html<?=$C;?>html
</div>
</div>
如上述 第一个class是一大群组 内包4笔资资料 如果想要 $A(流水号).$B.$C 都不重复 要如何写
<?};?>
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.163.52.139
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/PHP/M.1432865808.A.97F.html
1F:推 hareion08: sql group by!? 05/29 10:58
2F:推 powyo: distinct 05/29 11:03
3F:推 newversion: 诚心建议不要用 <?= 改用 <?php echo 06/03 04:19
4F:→ MOONRAKER: 我以前也是这麽想的。 06/03 18:04
5F:→ appleshark: 用<?php echo? 怎麽说呢 哪方面比较好? 06/05 16:03
7F:→ sakilu: ag 06/06 23:32