Greate script. Though you've hard code the database server, My server is not localhost. So for anybody else that's server is not localhost do the following:
Code:
1. Find mysql_connect(\"localhost\", \"$dbu\", \"$dbp\") or die(mysql_error());
2. Replace localhost with your server name
3. Done