August 25th, 2000, 12:41 PM
-
Hie,
Please tell me what I am doing wrong with my
connection to the server.
$DBHost="";->IP address e.g 205.150.253.140
$DBUser="";->Username e.g test
$DBPass="";->Password e.g testmail
function Connect () {
global $DBHost,$DBUser,$DBPass;
}
I get ;
Warning: MySQL Connection Failed: Can't connect to MySQL server on
------------------
pro
August 26th, 2000, 09:59 AM
-
The variables have to go inside the MYSQL_CONNECT(); bracketes. Like so:
MYSQL_CONNECT("205.150.253.140", "test", "testmail");
[This message has been edited by alexgreg (edited August 26, 2000).]