<span style="font-size:18px;">$query = mysql_query("select uid from TABLE") or die(mysql_error());
$result = array();
while($thread=mysql_fetch_assoc($query)){
$result[] = $thread['uid'];
}</span>
读取mysql一列所有值,赋值给数组
本文转载:CSDN博客
<span style="font-size:18px;">$query = mysql_query("select uid from TABLE") or die(mysql_error());
$result = array();
while($thread=mysql_fetch_assoc($query)){
$result[] = $thread['uid'];
}</span>