Mikepo Posted March 1, 2015 Share Posted March 1, 2015 Hi I'm trying addon http://addons.oscommerce.com/info/4674, as it seems to meet my needs. However, there is an problem with a deprecated database query Deprecated: mysql_query(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /volume1/web/Test234/catalog/includes/classes/shipping.php on line 28 I see that this is a Osc2.2 addon, and the I'm using 2.3.4, which has these deprecated database mysql commands removed. The offending code is $sql = "SELECT shipping_methods FROM ".TABLE_PRODUCTS." WHERE products_id IN (".implode(',',$real_ids).") AND shipping_methods IS NOT NULL AND shipping_methods <> ''";$query = mysql_query($sql); Is anyone using this addon and can advise, or can anyone help with changing the mysql? Mike Quote osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted March 1, 2015 Share Posted March 1, 2015 try changing mysql_query to tep_db_query, this way it uses the oscommerce functions Quote KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
Mikepo Posted March 1, 2015 Author Share Posted March 1, 2015 thanks, that worked, and also worked with other "mysql_" functions. The addon works now, and seems to give the result I want. Thanks for the quick reply Mike Quote osC CE live - developing osC Phoenix adding modules with no core changes(awesome and easy!) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.