# Updating older mysql_ code

## Description

What is interesting is there are still a number of programs in 2.5.4 that still use mysql_num_rows instead of tep_db_num_rows and I have to wonder if that is worthy of attention? The list of files that still use mysql_num_rows is:

catalog/templates/fallback/content/catalog_products_with_images.tpl.php
catalog/sitemap.class.php

In the following two files:

catalog/includes/functions/database.php

they each have the line:

function tep_db_num_rows(\$db_query) {
return mysql_num_rows(\$db_query);
}

Which I assume are to fix all occurrences of tep_db_num_rows to behave as mysql_num_rows - however isn't the problem mysql_* being dropped as of PHP 7.0 and has been deprecated since 5.5.0?

I see where one may be able to substitute mysql_ with mysqli_ (\$link, etc.) and achieve the same results, is this being considered? There are roughly 60 files in 2.5.4 that use mysql_xxx.

Complete list:

None

None

Michael Sasek

John Robertson

None

None

High
Configure