You can change the error reporting to stop reporting on deprecation warnings. See here.
However you should very seriously considering updating the code to use a non-deprecated extension such as MySQLi or PDO_MySQL.
Edit:
Also the image you supplied suggests that you have not supplied the parameters for connecting to the database.
1
solved How to run deprecated php codes on the latest XAMPP [duplicate]