Help - Search - Members - Calendar
Full Version: Warning: mysql/supplied argument
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > Advertising Section related to Running a website > Script Exchange > For Sale Archive
KristinNichole
aj.gif
I purchased a get paid to refer program. I transferred
the files from one host to another and now I am having
a problem with part of the affiliate script. I don't know
anything about mysql. Can anyone help me figure out
what to do with these warnings. Thanks.

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/.../public_html/admin/members.php on line 175

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/.../public_html/admin/members.php on line 177

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/.../public_html/admin/members.php on line 192
top-designing
It seems that u have an error on the mysql connection function.

If you have a main file that is managing your site parameters, search for a connection class, or a function that has a mysql_connect() function.

There look if the parameters are coresponding with the server parameters, for example if your php server is on other machine then mysql server then change "localhost" with the link.

If you cannot fix that just send me an email and i will take a look.
My email address is: webmaster@top-designing.com
ReDucTor
Actually, that could be the reason, although when it connects to the database, by default mysql will output a warning on failed attempts, unless you suprise it with @ or you turn of E_WARNING I think it outputs with.

Or the more likely answer, is a failed query, that doesn't have error checking, for the line in question (lol), find the nearest line above(probably 1-2 lines above) that has mysql_query and paste here, so we may look at it, also please find the mysql_connect/mysql_pconnect and mysql_select_db lines if you can, then remove any confidental information if any exists, then paste them here, I can suggest modifications to output error checking, then.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.