Jump to content


Corporate Sponsors


Latest News: (loading..)

ErkDog

Member Since 02 May 2008
Offline Last Active Aug 02 2011, 15:16
-----

Topics I've Started

OOOLD osCommerce PHP 4 -> PHP 5

19 July 2011, 02:12

OK so I have a super old version of osCommerce I've had dumped in my lap.

So old it was what Harold called it -before- osCommerce existed.

It looks like I've resolved all the problems on my own but one.

Basically you can navigate the categories and subcategories and everything works perfectly fine.

Right up until the point where the category has actual products in it.

When a category has actual products in it I get:

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

This is the following function:

function tep_db_num_rows($db_query) {

$result = mysql_num_rows($db_query);

return $result;
}


So I'm thinking that the problem is that when its going to count the number of products in the category, so it can run the loop and output them and all that good stuff a variable isn't coming across or something along those lines. Register globals is on, and every other part of the site seems to work fine.

Any ideas?

Thanks,
Matt