Re: [PHP-DB] DB access failure...

2004-07-24 Thread Jason Wong
On Saturday 24 July 2004 15:24, \[php\]Walter wrote: > That's what I thought. so I tried this test using PHP functions... > >mysql_connect($db_host, $db_user, $db_pass) > > I get this... > > Warning: mysql_connect(): Unknown MySQL Server Host 'db.torres.ws' Well that sounds like something

Re: [PHP-DB] DB access failure...

2004-07-24 Thread \[php\]Walter
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 24 July 2004 10:25, \[php\]Walter wrote: > > Does: > > ping hostname.as.listed.in.hosts.file > > correctly resolves to the IP address as listed in the HOSTS file? yes > If it does then you probably haven't s

Re: [PHP-DB] DB access failure...

2004-07-23 Thread Jason Wong
On Saturday 24 July 2004 10:25, \[php\]Walter wrote: > So, your saying that if the name is in the HOSTS file and it still does not > work I should not try anything further and just use the IP? Does: ping hostname.as.listed.in.hosts.file correctly resolves to the IP address as listed in the HO

Re: [PHP-DB] DB access failure...

2004-07-23 Thread \[php\]Walter
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 20 July 2004 13:16, \[php\]Walter wrote: > > I have a mySQL DB running on an NT server. > > > $db_host = 'db.myserver.net'; > > > Now, if I change $db_host to the machine IP, it works fine. > > If db.myserve

Re: [PHP-DB] DB access failure...

2004-07-19 Thread Jason Wong
On Tuesday 20 July 2004 13:16, \[php\]Walter wrote: > I have a mySQL DB running on an NT server. > $db_host = 'db.myserver.net'; > Now, if I change $db_host to the machine IP, it works fine. If db.myserver.net does not resolve to a sensible IP address add it to your HOSTS file. Or setup y

[PHP-DB] DB access failure...

2004-07-19 Thread \[php\]Walter
I have a mySQL DB running on an NT server. I just re-installed it (long story) and everything seems to be fine, except DB access. // Connectivity data $db_engine = 'mysql'; $db_host = 'db.myserver.net'; $db_user = 'test'; $db_pass = 'test'; $db_name = 'test'; //