On Sun, Oct 25, 2020 at 05:24:26PM -0600, thelma wrote in <f091a4f7-7769-b1e8-3455-2e6af52db...@sys-concept.com>:
The function in newer php "mysql_connect() or mysql_query()" were removed but I 
don't know starting from which version?

I'm running PHP Version 5.6.33-pl0-gentoo and these function work.
But I upgraded one of my system to php-5.6.40 and I'm getting an error:

PHP Fatal error:  Call to undefined function mysql_connect() in 
/var/www/catalog/admin/includes/functions/database.php on line 19

Hi Thelma,

I think mysql support was not removed between the two versions you
mention. The PHP website says "This extension was deprecated in PHP
5.5.0, and it was removed in PHP 7.0.0.", which would be a logical
point to do this. Could it be that your "use" flags for PHP changed?
Make sure to emerge PHP with the mysql use flag to build with mysql
database support.

I hope this helps.

Kind regards,

Remco

Reply via email to