On Thursday 08 November 2001 11:25, Sam Masiello wrote: > What database engine are you using? > > Sam Masiello > Software Quality Assurance Engineer > Synacor > (716) 853-1362 X289 > [EMAIL PROTECTED] Hi,
I'm using PostgreSQL. GB > Subject: Re: [PHP] Error control and the like > > > On Thursday 08 November 2001 09:49, Sam Masiello wrote: > > > If you are just looking for something that will display all of your > > > warning/error messages to show where fallibilities occur in your code, > > you > > > > can use the error_reporting() function at the top of your script. > > > > No, What you've described is like the perl 'use strict' and '-w'. > > > > Let me give you an example of what I'm wanting in pseudo-code. > > > > connect to database > > > > exec query > > > > error in query > > > > catch error > > > > rollback database > > > > It is almost like exceptions. > > > > Thanks, > > > > GB > > > > > Subject: [PHP] Error control and the like > > > > > > > Hi, > > > > > > > > I'm comming from a Perl background and I'm used to using > > > > evail{code;}; > > to > > > > > catch things that would kill the server/program and then do things > > based > > > > on > > > > > > > the error code. > > > > > > > > Can anyone suggest a way to implement the same thing in PHP? I've > > been > > > > > looking at some of the error control functions, but I've not seen any > > > > examples. Any ideas, locations or whatever? > > > > > > > > Thanks for the help. > > > > > > > > GB > > > > -- GB Clark II | Roaming FreeBSD Admin [EMAIL PROTECTED] | General Geek CTHULU for President - Why choose the lesser of two evils? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]