Ok, after all the problems trying to get into the flat file and stuff, i
decided it will just be easier to use mysql... Only problem is the database
is on the machine that is going to host the site when it's done... (Redhat
Linux) and is being developed in my office on a windows box...

So i need to connect to the database from my win box - and it's giving
connection failed messages.

This is what i'm doing:

$server = "IP of server:3306";
$user = "username";
$pass = "password";

if(!($myLink = mysql_pconnect($server,$user,$pass))) {
        print("Unable to connect to database<br>\n");


and every time it gives me the error. - do i need to change the script? or
do i need to contact the ISP that's hosting the database?

//Nick Richardson

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to