Current location: Hot Scripts Forums » Programming Languages » PHP » mysql fetch array error - what could be wrong?


mysql fetch array error - what could be wrong?

Reply
  #1 (permalink)  
Old 02-24-06, 04:08 PM
fatphil fatphil is offline
Newbie Coder
 
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
mysql fetch array error - what could be wrong?

i get this error on my newly installed script
Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/crappyth/public_html/lib/mysql.lib on line 29
heres the code of mysql.lib:http://www.crappytheclown.roxr.com/lib/mysql.lib (line 29 is this code: return mysql_fetch_array($r); )

I'm very bad at php and I don't know what the heck the problem is (i see nothing wrong with the script) so can someone give helpful pointer or even a solution to the problem? O and I installed the mysql database stuff, too

-

the homepage, not the signup page, login page, help page. also if this helps, i cannot login into the admin area with my set info that set in the configuration file. and i can't login with as a member with a test member set up from the mysql db. all these pages can accessed from here http://www.crappytheclown.roxr.com/ this is the admin area but there is no error here http://www.crappytheclown.roxr.com/backdoor/

- if you want to look at the files heres the whole script http://www.crappytheclown.roxr.com/i...arttraffic.rar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 02-24-06, 08:08 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
This usually means that the query failed, either because the name/password is incorrect or the query was malformed.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 02-25-06, 01:22 PM
sensationdesigns sensationdesigns is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Whatever the query was that you are trying to fetch the rows for probably returned an empty set (no rows returned)
__________________
SonicMailer Pro - Professional PHP mailing list manager
Follow the development of version 3!
Exhaustive list of new & improved features being implemented!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 03:22 AM
array in mysql lool49 PHP 1 11-22-04 07:07 AM
Converting MySQL Row Array Data into Session Data mdaoust PHP 0 09-15-04 04:42 PM
mysql fetch array problem darkcarnival PHP 1 03-31-04 07:49 PM
linking to iframe not working :( j0d JavaScript 5 01-19-04 09:14 PM


All times are GMT -5. The time now is 08:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.