PHP Warning: mysql_num_rows() expects parameter 1

More
7 years 5 days ago - 7 years 5 days 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:
$this->_check = mysql_num_rows($check_query);
the new code will look like this:
$this->_check = tep_db_num_rows($check_query);
Last edit: 7 years 5 days ago by Simpel.

Please Log in to join the conversation.

Time to create page: 0.129 seconds
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