Click here to Skip to main content
15,887,267 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

error

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\laragon\www\care\classes\adodb\drivers\adodb-mysql.inc.php:364 Stack trace: #0 C:\laragon\www\care\classes\adodb\adodb.inc.php(525): 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\adodb-mysql.inc.php on line 364
Posted
Updated 19-Jul-18 3:28am

1 solution

See PHP: mysql_connect - Manual[^]:
Quote:
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:
mysqli_connect()
PDO::__construct()
You have probably installed PHP 7 on your server and an old care2x version that uses the old mysql interface.
 
Share this answer
 

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