我收到了:
"Resource id #8 Warning: mysql_fetch_array() expects parameter 1 to be resource, string given"
该法典:
$sql="SELECT password FROM user WHERE userid=$userid";
echo $password=mysql_query($sql);
while($row = mysql_fetch_array($password)) {
$password = $row[ password ];
}
任何想法?