Ask a Question related to Dreamweaver AppDev, Design and Development.
-
TomJ_NL #1
Using DW to connect - in vain
:(
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
-------------------------------------------------------------
TomJ_NL Guest
-
Can't Connect to FTP, Need Help
For the past 2 years I have connected to our ftp site through Microsoft Frontpage. I just bought Macromedia Dreamweaver/Contribute as an upgrade,... -
CS3 will not connect
I've been conncecting ok for years and then without changing anything Contribute suddenly would not connect. I've upgraded to CS3 but still have the... -
How To Connect????
I'm using a trial version of Contribute 3. I was able to connect to our "actual" website just fine -- do whatever editing was necessary and save... -
How to use “RDS.Connect” to connect to a MS Access database?
The example I am working from uses the following code which does not work: RDS.Connect = "Provider='sqloledb';Integrated Security='SSPI';Initial ... -
cannot connect to DB from ASP.Net app
Hi, from a WinForms-app do I connect to a DB using a connectionstring : m_sqlConnection.ConnectionString = " workstation id=\"PC-WIN2000\";...



Reply With Quote

