MySQL Forums
Forum List  »  PHP

Re: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mywebsite/public_html/index.php on line 7
Posted by: Barry Galbraith
Date: May 02, 2011 03:01AM

>I was told that my phpmyadmin db table has to be the same in my scripts

I don't know what you mean.

Your error, "mysql_fetch_array(): supplied argument is not a valid MySQL result resource " means that the preceding mysql_query() failed to return a result for some reason. Either the mysql_connect() failed, or the mysql_select_db() failed, or the mysql_query() failed.

If there is no error checking/handling at any of those calls, and there is a failure, you will get the error you see.

Good luck,
Barry.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.