When I try to connect to the MySQL server from PHP, I see a below error:
“Deprecated: The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /path/to/filename.php on line 123”
The code on a referenced line is as below:
mysql_connect($server, $username, $password);
I am certain that my arguments are correct, and also exact code has been working for many years without a problem. So how can I fix my code?