看板 PHP 關於我們 聯絡資訊
小弟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://www.ptt.cc/bbs/PHP/M.1432865808.A.97F.html
hareion08: sql group by!? 05/29 10:58
powyo: distinct 05/29 11:03
newversion: 誠心建議不要用 <?= 改用 <?php echo 06/03 04:19
MOONRAKER: 我以前也是這麼想的。 06/03 18:04
appleshark: 用<?php echo? 怎麼說呢 哪方面比較好? 06/05 16:03
sakilu: ag 06/06 23:32