But it's give a many information using $e->getTrace()
is this correct. If there are several mysql_query then
I can put it as bunch within try block and catch
exception easily.
No, it doesn't give any such information.
1 :
In second approach for every query I have to write
throw new MySQLExcep
On Thu, 2008-02-21 at 21:01 -0800, Prabath Kumarasinghe wrote:
> In second approach for every query I have to write
> throw new MySQLException("My Message"). It's very time
> consuming isn't it?
In order to *be* lazy, you have to *think* lazy...
Don't go and define every single query with an exc
--- Chris <[EMAIL PROTECTED]> wrote:
> Prabath Kumarasinghe wrote:
> > Hi All
> >
> > Recently I'm came across following code snippet
> > regarding exceptions there I'm executing invalid
> query
> > and catch the exception as follows.
> >
> > First Approach
> > -
> -Original Message-
> From: Prabath Kumarasinghe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 21, 2008 11:19 PM
> To: php-general@lists.php.net
> Subject: [PHP] Exception vs exception
>
> Hi All
>
> Recently I'm came across following code snippet
> regarding exceptions there I'm
Prabath Kumarasinghe wrote:
Hi All
Recently I'm came across following code snippet
regarding exceptions there I'm executing invalid query
and catch the exception as follows.
First Approach
---
try{
$result = mysql_query('SELECT * from unknowntable');
}c
5 matches
Mail list logo