--- 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 cat
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');
}catch(exception $e){
echo $e-
Understood, Thanks Paul
Cheers
Prabath
--- Paul Scott <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2008-02-06 at 23:37 -0800, Prabath
> Kumarasinghe wrote:
> > Does that mean for every exception do we have to
> write
> > our custom exception and describe it from our ow
Does that mean for every exception do we have to write
our custom exception and describe it from our own
message
Cheers
Prabath
--- Paul Scott <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2008-02-06 at 23:10 -0800, Prabath
> Kumarasinghe wrote:
> > Is this followin
Hi Paul
Is this following code work in PHP if mysql_connect
fails.
try{
mysql_connect('localhost','user','');
}catch(Exception $e){
echo $e->getMessage();
}
Cheers
Prabath
--- Paul Scott <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2008-02-06
Hi All
I'm little bit confusing with PHP exception handling.
Could you able to explain how to put try{} and
catch(){} in a proper way in PHP. I had already read
php exception manual but it didn't help me to get
exact idea about exception handling in php.
Cheers
Prabath
Hi All
I would like to know how many entries does PHP associative array can handle.
Cheers
Prabath
7 matches
Mail list logo