RE: [PHP] php die function for MySQL connection errors

2004-08-16 Thread Ford, Mike [LSS]
On 14 August 2004 15:50, raditha dissanayake wrote: Ford, Mike [LSS] wrote: (And, BTW, the HTTP definition says that the Location: header should specify a full absolute URL, so that should be: header(Location: http://your.server.name/path/to/errors/servererror.php;); are

Re: [PHP] php die function for MySQL connection errors

2004-08-16 Thread raditha dissanayake
Ford, Mike [LSS] wrote: On 14 August 2004 15:50, raditha dissanayake wrote: Ford, Mike [LSS] wrote: (And, BTW, the HTTP definition says that the Location: header should specify a full absolute URL, so that should be: header(Location:

[PHP] php die function for MySQL connection errors

2004-08-14 Thread John Gostick
Hi, I have a quick question about using the PHP die() function. I'm building a site around a MySQL database, and when I connect to the database from a PHP page I use the following code: $connection = mysql_connect($host, $user, $password) or die(Error connecting to SQL server); $db =

Re: [PHP] php die function for MySQL connection errors

2004-08-14 Thread raditha dissanayake
John Gostick wrote: Hi, I have a quick question about using the PHP die() function. I'm building a site around a MySQL database, and when I connect to the database from a PHP page I use the following code: $connection = mysql_connect($host, $user, $password) or die(Error connecting to SQL

RE: [PHP] php die function for MySQL connection errors

2004-08-14 Thread Ford, Mike [LSS]
-Original Message- From: John Gostick Sent: 14/08/04 15:19 I have a quick question about using the PHP die() function. [...] I changed the code to this: $connection = mysql_connect($host, $user, $password) or die(Error connecting to SQL server); $db =

Re: [PHP] php die function for MySQL connection errors

2004-08-14 Thread raditha dissanayake
Ford, Mike [LSS] wrote: (And, BTW, the HTTP definition says that the Location: header should specify a full absolute URL, so that should be: header(Location: http://your.server.name/path/to/errors/servererror.php;); are you sure? -- Raditha Dissanayake.