PHP Warning: mysql_num_rows() expects parameter 1

Meer
10 jaren 3 maanden geleden - 10 jaren 3 maanden geleden #557 door 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);
Laatst bewerkt 10 jaren 3 maanden geleden doorSimpel.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

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