mysql_fetch_assoc():4 is not a valid MySQL result resource到底怎么了?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 10:39:12
mysql_fetch_assoc():4isnotavalidMySQLresultresource到底怎么了?mysql_fetch_assoc():4isnotavalidMySQLresult

mysql_fetch_assoc():4 is not a valid MySQL result resource到底怎么了?
mysql_fetch_assoc():4 is not a valid MySQL result resource


到底怎么了?

mysql_fetch_assoc():4 is not a valid MySQL result resource到底怎么了?
$Recordset1 没有搜索到数据
改成这样试试
if(mysql_num_rows($Recordset1) == 0)
{
}
else
{
while($row_Recordset1 = mysql_fetch_assoc($recordset1));
}