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
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
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
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
> -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
>
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
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
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
8 matches
Mail list logo