RE: [PHP] Database connection problem
$connect = mysql_connect("localhost","user","password") or die(mysql_error); -Original Message- From: Omland Christopher m [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 7:55 PM To: Cameron Just Cc: [EMAIL PROTECTED] Subject: [PHP] Database connection problem Hi, can anyone help me with this problem. I'm trying to connect to a MySQL database on my computer, I don't have a hostname for it, so I just insert the IP, something like this. ... mysql_cos? Thanks. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Database connection problem
I have no idea what you meant to ask... but instead of an ip address I would use the hostname 'localhost' which most servers are setup by default to understand as 127.0.0.1 (loopback). And you can add an entry to /etc/hosts or C:\windows\hosts or c:\winnt\(?system(?32?)\?)hosts But that's just me... -Original Message- From: Omland Christopher m [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 5:55 PM To: Cameron Just Cc: [EMAIL PROTECTED] Subject: [PHP] Database connection problem Hi, can anyone help me with this problem. I'm trying to connect to a MySQL database on my computer, I don't have a hostname for it, so I just insert the IP, something like this. ... mysql_cos? Thanks. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php