I am trying to do a simple connection with XAMPP and MySQL server, but whenever I try to enter data or connect to the database, I get this error.
Fata
You can use mysqli_connect($mysql_hostname , $mysql_username) instead of mysql_connect($mysql_hostname , $mysql_username).
mysqli_connect($mysql_hostname , $mysql_username)
mysql_connect($mysql_hostname , $mysql_username)
mysql_* functions were removed as of PHP 7. You now have two alternatives: MySQLi and PDO.
mysql_*