bigone111
中级会员
 
一般会员
UID 67359
精华
0
积分 277
帖子 219
金钱 277 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2005-12-21
状态 离线
|
[推荐阅读] ajax php 中文问题
回复 #6 水清无鱼 的帖子
真是抱歉,我还有个问题,我是这样写的:
<?php
$sql="select distinct(A.aname),B.bname,C.cname,B.bid,C.cid from A,B,C where A.aid=B.aid and B.bid=C.bid";
$result=mysql_query($sql,$conn);
while ($rs=mysql_fetch_array($result))
{
?>
<td width="21%" height="150"><?=$rs["aname"]?><br>
<a href="product_3catalog.php?bid=<?=$rs["bid"]?>"><?=$rs["bname"]?></a><br>
<a href="product_show.php?cid=<?=$rs["cid"]?>"><?=$rs["cname"]?></a>
</td>
<?php
}
?>
-------------------------
会显示这样:
烏金材質 烏金材質 烏金材質
Battery Battery Battery
test Hotmail www
-------------------------如何才能不重复显示呢?像这样:
烏金材質
Battery
test
Hotmail
www
|
|