$connect = mysql_connect("localhost","root",""); is telling the program to look for the database at the very root of your file directory, which you're telling me is not where it's located. That should be changed to reflect the actual path C:\wamp\