PHP Warning: mysql_num_rows() expects parameter 1

More
9 years 8 months ago - 9 years 8 months ago #557 by Simpel
osCommerce 2.3.3.3 has been released, with changes to the MySQL layer. If you are getting messages like:
PHP Warning: mysql_num_rows() expects parameter 1 to be resource, object given in ...
or
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

then simply change the call “mysql_num_rows” to “tep_db_num_rows” in the following places:
recover_cart_sales.php
recover_wishlist.php

So the old code looked like this:
Code:
$this->_check = mysql_num_rows($check_query);
the new code will look like this:
Code:
$this->_check = tep_db_num_rows($check_query);
Last edit: 9 years 8 months ago by Simpel.

Please Log in or Create an account to join the conversation.

Events Joomla
MarvikShop
Finnaly it's here:
 
No bridges, no look a likes!
This is the ultimate integration
between Oscommerce and Joomla!
Documentation
Site Showcase
Follow us