I see that you are indeed pretty mixed up about $! "$" is an reserved keyword that tells php that what follows, until another reserved keyword or space, is a variable. To be usable, you need to give them a value. To directly use a string, as in your case, you need to use double or single quotes.
So basically, your code should read like that:
PHP Code:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
// Set the hostname_fancyfeedback_db variable to the value : localhost
$hostname_fancyfeedback_db = "localhost";
// Set the database_fancyfeedback_db variable to the value : webbt_fancythat
$database_fancyfeedback_db = "webbt_fancythat";
// Set the username_fancyfeedback_db variable to the value : webbt_fancy
$username_fancyfeedback_db = "webbt_fancy";
// Set the password_fancyfeedback_db variable to the value : password
$password_fancyfeedback_db = "password";
// Connect to the database (mysql_pconnect) using the information stored
// in the variables, and assign the connection to a variable, fancyfeedback_db
// The 'or trigger_error(...)' part is just to make sure that there is a database connection
$fancyfeedback_db = mysql_pconnect($hostname_fancyfeedback_db, $username_fancyfeedback_db, $password_fancyfeedback_db) or trigger_error(mysql_error(),E_USER_ERROR);
// Select the database where the tables reside, using the database name we stored
// earlier, and the connection we stored earlier
mysql_select_db($database_fancyfeedback_db, $fancyfeedback_db);
?>
Don't forget to use [ PHP ] [ /PHP ] around php code, [ HTML ] [ /HTML ] around html code and [ CODE ] [ /CODE ] around any other code. (take the spaces out)
Here are some php-related tutorials:
http://www.php.net/manual/en/tutorial.php
http://w3schools.com/php/default.asp