Quote:
Originally Posted by darkyy1994
hey i got this error on top from the adminwatch webpanel
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/customers/webs/xxxxxx/adminwatch/includes/database.include.php on line 25
anyone know how to fix this?
everything is working but this is still here xD
|
I also get that error on the web page.
Quote:
Originally Posted by micazoid
Find:
Code:
if( 0 == $this->Link_ID )
$this->Link_ID=mysql_connect( $this->Host, $this->User, $this->Password );
Alter it to:
Code:
if( 0 == $this->Link_ID )
$this->Link_ID=mysqli( $this->Host, $this->User, $this->Password );
|
This does not work.
If I change "mysql_connect" to "mysqli" I get this:
Fatal error: Call to undefined function mysqli() in /home3/crazime/public_html/adminwatch/go8/includes/database.include.php on line 25
If I change "mysql_connect" to "mysqli_connect" I get this:
Warning: mysqli_connect(): (HY000/2003): Can't connect to MySQL server on '172.16.0.3' (110) in /home3/crazime/public_html/adminwatch/go8/includes/database.include.php on line 25
Database error: Link-ID == false, connect failedMySQL Error: 0 ()Session halted.
Anybody know what the correct syntax is to fix this?