Click here to Skip to main content
14,735,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i installed care2x on laragon server (php and mysql) but it is throwing error please help me to solve this problem

What I have tried:

care2x installation


Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\laragon\www\care\classes\adodb\drivers\ Stack trace: #0 C:\laragon\www\care\classes\adodb\ ADODB_mysql->_connect('localhost', 'root', 'root', 'care2x_trunk') #1 C:\laragon\www\care\include\core\inc_db_makelink.php(84): ADOConnection->Connect('localhost', 'root', 'root', 'care2x_trunk') #2 C:\laragon\www\care\include\core\inc_environment_global.php(81): require_once('C:\\laragon\\www\\...') #3 C:\laragon\www\care\index.php(40): require('C:\\laragon\\www\\...') #4 {main} thrown in C:\laragon\www\care\classes\adodb\drivers\ on line 364
Updated 19-Jul-18 4:28am

1 solution

See PHP: mysql_connect - Manual[^]:
Warning This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: Choosing an API[^] and related FAQ[^] for more information. Alternatives to this function include:
You have probably installed PHP 7 on your server and an old care2x version that uses the old mysql interface.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900