:(
I have DW create a connection to my MySQL database on my Localhost machine. It
reports being able to connect to the db perfectly.
However, when I use that connection, the variable that holds the name of the
connection, evaluates in Resource ID #2. I cannot find out what I am doing
wrong.
I have attached the code.

Why is the value of $myConnection not what I expect?

-------------------------------------------------------------
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_myConnection = "localhost";
$database_myConnection = "myDBname";
$username_myConnection = "myUsername";
$password_myConnection = "myPassword";
$myConnection = mysql_pconnect($hostname_myConnection, $username_myConnection,
$password_myConnection) or die(mysql_error());
echo 'Variable $hostname_myConnection now contains
'.$hostname_myConnection.'<br>';
echo 'Variable $database_myConnection now contains
'.$database_myConnection.'<br>';
echo 'Variable $username_myConnection now contains
'.$username_myConnection.'<br>';
echo 'Variable $password_myConnection now contains
'.$password_myConnection.'<br>';
echo '--------------------------------<br>';
echo 'Variable $myConnection now contains '.$myConnection.'<br>';
?>
-------------------------------------------------------------
which is represented by the browser as:
-------------------------------------------------------------
Variable $hostname_myConnection now contains localhost
Variable $database_myConnection now contains myDBname
Variable $username_myConnection now contains myUsername
Variable $password_myConnection now contains myPassword
--------------------------------
Variable $myConnection now contains Resource id #2
-------------------------------------------------------------