Jump to content

mysql_fetch_array Error


shunut

Recommended Posts

I wasn't sure if this was the right place for this or if this should be in php help but I'll start here.  I have an online paintball store.  The site was a presetup site from osCommerce I just had to change paths and add my stuff.  I know html but know nothing about php coding or mysql.  I came across this error the other day and posted it on a osCommerce site but I have received no help.  If anybody could help me or point me in the right direction I would appreciate it.  I'm up for learning what I need to do to fix this problem but don't know where to look.

Here is the error I get:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/d/u/r/durrell12/html/catalog/admin/includes/functions/database.php on line 100

Warning: reset(): Passed variable is not an array or object in /home/content/d/u/r/durrell12/html/catalog/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/content/d/u/r/durrell12/html/catalog/admin/includes/classes/object_info.php on line 18

I went into each file and here are the lines it is calling:


Line 100 - database.php (first error)

[code]
return mysql_fetch_array($db.query, MYSQL_ASSOC);
[/code]


Line 17 - object_info.php (second error)

[code]
reset ($object_array);
[/code]


Line 18 - object_info.php (third error)

[code]
while (list($key, $value) = each($object_array))  {
[/code]

If anybody could help me at all I would greatly appreciate it.  If you need more info, please ask.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.