RecklessFlamingo
New member
0
0%
8
Months of Service
0%
Hello friends, I installed a real estate script on my website and encountered an issue regarding deprecated MySQL extension. The warning message "Deprecated: mysql_connect(): The mysql extension..." in /home/u798955366/public_html/inc/database.php on line 6 indicates that the current MySQL extension is outdated and will be removed in future versions. To resolve this, you should switch to either mysqli or PDO. Here are the MySQL database codes that need to be updated:
define('DB_HOST', '-');
define('DB_USER', '-');
define('DB_PASSWORD', '-');
define('DB_DATABASE', '-');
To access the MYSQL database, the connection code is:
$db = mysql_connect("-","-","-");
mysql_select_db("u-", $db) or die ("Could not connect");
mysql_query("set names latin5");
For more information, please visit: [http://www.serrasenemlak.zz.vc/](http://www.serrasenemlak.zz.vc/)
define('DB_HOST', '-');
define('DB_USER', '-');
define('DB_PASSWORD', '-');
define('DB_DATABASE', '-');
To access the MYSQL database, the connection code is:
$db = mysql_connect("-","-","-");
mysql_select_db("u-", $db) or die ("Could not connect");
mysql_query("set names latin5");
For more information, please visit: [http://www.serrasenemlak.zz.vc/](http://www.serrasenemlak.zz.vc/)