且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

mysql_fetch_assoc():提供的参数不是PHP中的有效MySQL结果资源

更新时间:2023-11-28 16:20:04

这有点令人困惑,因为这种事情通常是由SQL错误引起的,但是..or die(mysql_error());行应该已经解决了.检查循环的内容,确认您没有覆盖$result变量.

That's slightly confusing, since this sort of thing is usually caused by an SQL error, however the line ..or die(mysql_error()); should have picked that up. Check the contents of your loop that you're not overwriting the $result variable.