日期:2014-05-17 浏览次数:20555 次
$uid='6';
$result = mysql_query("SELECT * FROM user WHERE uid='$uid'")
or die("Invalid query: " . mysql_error());
print_r(fetch_array($result));
$username='匿名';
$resultt = mysql_query("SELECT * FROM user WHERE username='$username'")
or die("Invalid query: " . mysql_error());
print_r(fetch_array($resultt));
echo $resultt = mysql_query("SELECT * FROM user WHERE username='$username'") or die("Invalid query: " . mysql_error());