Home » Php » php – Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in 2

php – Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in 2

Posted by: admin February 25, 2020 Leave a comment

Questions:

I’m having trouble with this error

 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in

can’t google my way to why,

The line is

$admins_query = mysql_query("SELECT * FROM sb_admins_servers_groups WHERE server_id='".$row['sid']."' ORDER by id");
while($admin = mysql_fetch_array($admins_query)) {

hope you can help me!

How to&Answers: