Hello to all,I have a problem to connect PHP & MySQL together.
I have created a form that gets the username & password from admin and connect him to database.the part of PHP script that connect to mysql is as follow:
[CODE=php]$db=mysql_pconn ect("hostname", $username,$pass word);
if(!$db){
echo"ERROR:conn ecting failed";
exit; }
else
echo"you have connected to database succsessfully"; [/CODE]
I want to know what should i write instead of "hostname" parameter in mysql_pconnect function?
I use IIS as localhost server and DreamWeaver as editor. the path of mysql is :C:/Program Files/MySQL/MySQL Server 6.0/ ,(mysql is not install in root folder of localhost) and TCP Port is 3306.
Can i creat a connection with DreamWeaver directly?
Tanx very much.
I have created a form that gets the username & password from admin and connect him to database.the part of PHP script that connect to mysql is as follow:
[CODE=php]$db=mysql_pconn ect("hostname", $username,$pass word);
if(!$db){
echo"ERROR:conn ecting failed";
exit; }
else
echo"you have connected to database succsessfully"; [/CODE]
I want to know what should i write instead of "hostname" parameter in mysql_pconnect function?
I use IIS as localhost server and DreamWeaver as editor. the path of mysql is :C:/Program Files/MySQL/MySQL Server 6.0/ ,(mysql is not install in root folder of localhost) and TCP Port is 3306.
Can i creat a connection with DreamWeaver directly?
Tanx very much.
Comment