时间:2021-07-01 10:21:17 帮助过:22人阅读
$result = mysql_query("SELECT * FROM uid",TABLE);
from uid明显有问题
改为
$uid=xxx; // 要查询的uid
$result = mysql_query("SELECT * FROM TABLE where uid='".$uid."'") or die(mysql_error());
试试
$result = mysql_query("SELECT * FROM uid",TABLE);
from uid明显有问题
改为
$uid=xxx; // 要查询的uid
$result = mysql_query("SELECT * FROM TABLE where uid='".$uid."'") or die(mysql_error());
试试
那更简单
$query = mysql_query("select uid from TABLE") or die(mysql_error());$result = array();while($thread=mysql_fetch_assoc($query)){ $result[] = $thread['uid'];}
那更简单
$query = mysql_query("select uid from TABLE") or die(mysql_error());$result = array();while($thread=mysql_fetch_assoc($query)){ $result[] = $thread['uid'];}
那更简单
$query = mysql_query("select uid from TABLE") or die(mysql_error());$result = array();while($thread=mysql_fetch_assoc($query)){ $result[] = $thread['uid'];}
把$result带进$exists答案不就出来了?
把$result带进$exists答案不就出来了?
那更简单
$query = mysql_query("select uid from TABLE") or die(mysql_error());$result = array();while($thread=mysql_fetch_assoc($query)){ $result[] = $thread['uid'];}
$query = mysql_query("select uid from TABLE") or die(mysql_error());$result = array();while($thread=mysql_fetch_assoc($query)){ $result[] = $thread['uid'];} ?>
那更简单
$query = mysql_query("select uid from TABLE") or die(mysql_error());$result = array();while($thread=mysql_fetch_assoc($query)){ $result[] = $thread['uid'];}
$query = mysql_query("select uid from TABLE") or die(mysql_error());$result = array();while($thread=mysql_fetch_assoc($query)){ $result[] = $thread['uid'];} ?>