0

Hello
I amm designing a website for my mom the site is to advertise her book. it has a message board in it. the message board works great locally but when i upload it t a server i get a:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/areyoube/public_html/PeapleSay/display_message.php on line 11

Now i am pretty new to php and mysql and i do not have a clue what to do. I did create a new database on the host but i did make all neccesary changes to both the scripts and the database.

Any help would be great Thank-you.

6
Contributors
7
Replies
8
Views
6 Years
Discussion Span
Last Post by jimdj
0

It sounds like you are executing:

$res = mysql_query("some query here");
while($row = mysql_fetch_assoc($res) )
{
 //...code here
}

what you need to do is add " or die( mysql_error() );" so that you get details about the error.

$res = mysql_query("some query here") or die( mysql_error() );
while($row = mysql_fetch_assoc($res) )
{
 //...code here
}
0

I will post the code on here as soon as i can thank you everyone for you responses i really appreciate it.

0

Thank you for your replies. but i have put this project on hold for awhile. And thank-you again for your replies.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.