Any help, as if teaching a complete noob (step by step; without too much technical terms), would be very much appreciated.
I just restored a copy of my website to a new domain via CPanel. The website on the previous domain was working absolutely fine. Now that I have restored this backup to the new domain, I am getting these errors:
Deprecated: mysql_query(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xxx/public_html/header.php on line 5
Warning: mysql_query(): Access denied for user ''@'localhost' (using password: NO) in /home/xxx/public_html/header.php on line 5
Warning: mysql_query(): A link to the server could not be established in /home/xxx/public_html/header.php on line 5
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/header.php on line 5
These errors are also appearing on my index.php file.
I was searching this issue on the web and if I am correct, there is some sort of incompatibility between my PHP code and my databases.
The thing that troubles me is that this code/database was working just fine on the previous domain and now I am getting these errors.
I think that this issue can be somewhat solved by changing some settings on my database. I have come to this conclusion due to the fact that the .php files that make reference to the databases are absolutely identical as the previous domain and it was working just fine.
If I am wrong, or any solutions to this issue are known to any of you and you can let me know, I'd greatly appreciate it.