php MySQL Error help.

hawke

Power Member
Joined
Nov 14, 2008
Messages
644
Reaction score
536
Anyone familiar with mysql that can give me an idea what is wrong with this error?

Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in 
/home/digitcom/public_html/xxxxxx/xxxxx/includes/callback/account/edit.php on line 60

this is line 60 in the edit.php file:

Code:
    while ($row = mysql_fetch_array($result)) {
 
might need to show some more code - im just waking up and not had any morning coffee yet but it sounds like your variable $result isnt carrying any data

if you comment out that line and do:

print_r ($results);

does it spit any data out?
 
I just figured it out, the setup did not input any tables/data in the database. seems the setup files are broken in the script.
 
yep figures you had no data to pass into your $results :)
 
Back
Top