I\'ve just started using WAMP for a PHP project and I get the next errors related with this line of code:
$link=mysql_connect(\"localhost\",\"myuser\",\"mypa
That you are connecting to localhost suggests that you probably don't have network problems.
First hit in Google lists 2 possible causes/remedies.
This message appears when one is using PHP 5.3... with MySQL database that is intended to be used with PHP 5.2... I noticed that when I changed to another version of Uniform Server.
If you don't have access to the database and are mainly using this remote connection to development purposes (like me) a solution to the is to have configurations with both PHP versions (currently the latest Uniform Server with PHP 5.2... appears to be 5.6b-Nano with PHP 5.2.13).