读取mysql一列所有值,赋值给数组

<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一列所有值,赋值给数组)