warning:mysql_fetch_array() expects parameter 1 to be resource, object given

偶尔善良 提交于 2019-12-04 00:28:43

You are mixing mysql and mysqli calls in your code. Use mysqli_fetch_array instead of mysql_fetch_array.

You are mixing mysqli and traditional mysql commands.

Use $result->fetch_array().

You're using two different sets of functions... mysqli and mysql.
I think you want to use the fetch_assoc() method.

Check out http://php.net/manual/en/book.mysqli.php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!