I guess I'm looking for something more like a try/catch where if there's an
error, nothing will be displayed and the script will keep on going. I
noticed php5 will have try/catch capabilites!

-Josh

> -----Original Message-----
> From: tclug-list-bounces at mn-linux.org
> [mailto:tclug-list-bounces at mn-linux.org]On Behalf Of Dave Dash
> Sent: Wednesday, March 10, 2004 2:11 PM
> To: TCLUG Mailing List
> Subject: Re: [TCLUG] mysql_connect with php
>
>
> Josh Close wrote:
>
> >Is there a way to have php continue if a connect fails for
> mysql_connect( )?
> >
> >Say, instead of doing 'or die(mysql_error( ));'.
> >
> >-Josh
> >
> >_______________________________________________
> >TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> >http://www.mn-linux.org tclug-list at mn-linux.org
> >https://mailman.real-time.com/mailman/listinfo/tclug-list
> >
> >
> just don't do or die ;)
>
> a failed connection shouldn't halt everything.
>
> also, you may want to use Pear::DB
>
> -dd
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> http://www.mn-linux.org tclug-list at mn-linux.org
> https://mailman.real-time.com/mailman/listinfo/tclug-list
>


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list