I m not sure if you just post an example with:
// configure your database settings
$host = "localhost"; // Vertexhost
$user= ""; // ?????? <- databaseusername for PP
$password= ""; // ????? <- pwd for this user
$database=""; // proguide_gallery or proguide_forum
but you have to fill it out with your settings. This is needet for my board, running 2 seperatet DB's with the same username and password.
sample:
$host = "localhost"; // Vertexhost
$user= "mydbusername"; // ?????? <- databaseusername for PP
$password= "pwdofuser"; // ????? <- pwd for this user
$database="proguide_gallery"; // proguide_gallery or proguide_forum
after this you need to set the following for creating a first time contact to the PP_DB:
// Connecting, selecting database
$link = mysql_connect ("$host", "$user", "$password") or die ("I cannot connect to the database.");
The rest seems to be correct. Just take my example tha I attach some messages above and edit it to reflect your account settings. It should work.