Is there any particular reason you are creating a persistent connection with mysql_pconnect()? You're including your connect file everytime the page is loaded, so try using mysql_connect(). I may be wrong though.
Also, why are you using $password = md5[password]? I'm sure you realize this but make sure your code actually says
php
$password = md5($password);
Will the script connect if you just go to //localhost/connect.php?
Finally, which die error are you receiving when you run the connection. Also, in your die() functions, add mysql_error() and let us know what error pops up. That's what's really going to help nail down what you're looking for
php
mysql_connect($host, $username, $password) or die ( "Unable to connect: " . mysql_error() );
Make sure you add your code between code tags when posting to the forum.
Oh, one more note. Make sure you sanitize your data! Don't put your $_POST variables directly into your SQL statements.
Let us know what errors you are receiving.
This post has been edited by akozlik: 15 Jul, 2008 - 06:32 AM