dunno if u solved the problem yet,
in the connection provide the password, but keep it blank since u don't want to use a password.
I had same error when i wanted to connect to my database without using a password, when i putted a blank password it was ok.
it depends on how u make the connection, but make sure there is an field for password even that it is an empty 1.
$db = mysql_connect("localhost", "root","");
mysql_select_db("ur database",$db);
hope this will solve the error
for the popup... i cannot help u.. i think that's very hard to do.. could think of some theories, but 🙂 no clue how to implement those so i won't start about that