RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
Thanks John. > -Original Message- > From: John Holmes [mailto:[EMAIL PROTECTED]] > Sent: 03 May 2002 16:29 > To: [EMAIL PROTECTED]; 'PHP' > Subject: RE: [PHP] Re: PHP with MySQL > > > There's a whole section in the manual on it. There is a log_e

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread John Holmes
To: PHP > Subject: RE: [PHP] Re: PHP with MySQL > > Oh, i agree entirely. > > Ok, i'll look into the logging/mailing solution - something i've been > doing > in ASP for years but am new to in PHP. > > Cheers, > > .b > > > -Original Mess

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
PROTECTED]'; PHP > Subject: RE: [PHP] Re: PHP with MySQL > > > Hi Ben, > > > John, presumably I can leave the error reporting on - > > but pipe it into a file if i wanted, rather than > > displaying on screen, and then redirect the user to > > another pag

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread Jon Haworth
Hi Ben, > John, presumably I can leave the error reporting on - > but pipe it into a file if i wanted, rather than > displaying on screen, and then redirect the user to > another page? Of course you can - I generally have my pages send me email when they throw an error, but that's because I'm

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
> -Original Message- > From: Jon Haworth [mailto:[EMAIL PROTECTED]] > Sent: 03 May 2002 11:34 > To: '[EMAIL PROTECTED]'; PHP > Subject: RE: [PHP] Re: PHP with MySQL > > > Hi .ben, > > > Just out of interest, what's the standard/best/tried >

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread Jon Haworth
Hi .ben, > Just out of interest, what's the standard/best/tried > &tested method for handling errors in relation to > connecting to DB's? i.e. how to check that the > connection was a success, and if not then display why. Something like... $dbh = mysql_connect ("foo", "bar", "baz") or die

RE: [PHP] Re: PHP with MySQL

2002-05-03 Thread .ben
Mike Eheler [mailto:[EMAIL PROTECTED]] > Sent: 03 May 2002 02:28 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: PHP with MySQL > > > Typically it's done like: > > $db = mysql_connect('localhost','username','password'); > > The MySQL databa

[PHP] Re: PHP with MySQL

2002-05-02 Thread Mike Eheler
Typically it's done like: $db = mysql_connect('localhost','username','password'); The MySQL database detects what host you're connecting from, and appends that to your username. I'm not sure if it's possible to specify an alternate host. So if both PHP and MySQL are on the same machine, and y