I am using the below code
$con = @mysql_connect($this->host, $this->user, $this->password);
While following code is working fine.
$con = mysqli_connect("localhost","root","");
my php version is 5.5.33,what is the problem?
I am using the below code
$con = @mysql_connect($this->host, $this->user, $this->password);
While following code is working fine.
$con = mysqli_connect("localhost","root","");
my php version is 5.5.33,what is the problem?
mysql 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.
Permanent Solution:You can install xampp with php 5.4. or 5.3 then put your code there.Definetly you not get any error.
I am facing more issue like syntax error or many so i putted my code in 5.4 oh with xampp 1.0.8.Please try This is not my guessing I am putted my code there and i got not any error.
Because:mysql 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.