Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error-Warning: mysql_fetch_array(): supplied argument is not


mtorrance

Recommended Posts

Hello-

 

I have just installed on Linux/Apache w/ PHP 4.2.3 & MySQL 3.23.53a.

I'm getting several errors:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mtorr/public_html/catalog/includes/functions/database.php on line 39

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mtorr/public_html/catalog/includes/functions/database.php on line 39

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mtorr/public_html/catalog/includes/functions/database.php on line 39

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mtorr/public_html/catalog/includes/functions/database.php on line 46

FONT_STYLE_INFO_BOX_BODY

 

These errors are all over the page which you can see at:

http://www.mtorrance.com/catalog/default.php

 

Do I need to delete the database and set it up again? Or is this something wrong in my config or both?

 

Thanks,

Mark

Link to comment
Share on other sites

There is something wrong with your config

 

First: your using 2.1, 95% of people use 2.2, even if its not official.

All the mods are pretty much for 2.2 as well, so I'd recommend you using that.

 

For 2.1 goto catalog/includes/application_top.php and edit the settings (particular database)

For 2.2 its catalog/includes/configure.php

 

 

You'll need to edit the same files in the admin subdirectory also

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...