某一字段信息相同,如何取出 可以这样写SQL:select distinct myfield from mytable; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 大致的表示:$link=@mysql_connect("localhost","yrking","hitme");$qu="select distinct myfield from mytable";$res=@mysql_query($qu,$link); $i = 0;while($row=@mysql_fetch_row($res)) { $myarray[i]=$row[0]; $i = $i + 1; } 求助 使用匹配查询mysql得到结果后如何在另外一个页面显示? 求PHP高手帮解决字符编码问题 php类操作求助 ajax+php 实现文件上传,不刷新页面 一个DIV+CSS的中国地图 有会php的程序员想在上海工作吗? 微信公众平台下面的工具栏怎么去掉 大家帮忙给这个东西估个价吧 如何提取string中的大量标签值? 模糊搜索中,如何隔字搜索 时间问题!!急! 有关mail( )函数
$link=@mysql_connect("localhost","yrking","hitme");
$qu="select distinct myfield from mytable";
$res=@mysql_query($qu,$link);
$i = 0;
while($row=@mysql_fetch_row($res))
{
$myarray[i]=$row[0];
$i = $i + 1;
}