Author Topic: Deprecated: mysql_connect()  (Read 1803 times)

Offline meganews

  • Newbie
  • *****
  • Posts: 4
  • Karma: +0/-0
Deprecated: mysql_connect()
« on: August 29, 2016, 12:39:27 PM »
phpEnter Web Hosting
How can I avoid this error ?

Code: [Select]
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /web/htdocs/www.rollercoasterrevolution.eu/home/agregatore/classes/adodb/drivers/adodb-mysql.inc.php on line 443
I use the php version 5.6.19

Offline goli

  • Full Member
  • *****
  • Posts: 39
  • Karma: +2/-0
Re: Deprecated: mysql_connect()
« Reply #1 on: August 31, 2016, 11:32:37 AM »
In settings.php, admin/admheader.php, admin/header.php and admin/signin.php

replace this code:

Code: [Select]
$dbdriver = "mysql";
with this code:

Code: [Select]
$dbdriver = "mysqli";

Offline meganews

  • Newbie
  • *****
  • Posts: 4
  • Karma: +0/-0
Re: Deprecated: mysql_connect()
« Reply #2 on: September 02, 2016, 07:56:49 PM »
Perfect works !!

thank you very much