Re: [PHP] Exceptions in PHP

2006-05-15 Thread Kevin Waterson
This one time, at band camp, John Meyer <[EMAIL PROTECTED]> wrote: > I have the following script: > > try { > $conn = mysql_connect("localhost","webuser","testme") or die("Could not > connect"); -- snipped for sake of sanity -- I think if you wish to push down this path you may wish to l

Re: [PHP] Exceptions in PHP

2006-05-14 Thread Richard Lynch
On Sun, May 14, 2006 2:10 pm, John Meyer wrote: > try { > $conn = mysql_connect("localhost","webuser","testme") or die("Could > not > connect"); Seems to me you ought to use throw() here... > mysql_select_db("bookcollection",$conn) or die("Could not select > database"); Ditto. >

Re: [PHP] Exceptions in PHP

2006-05-14 Thread Jochem Maas
do you know what a php exception is and when/where/what generates them? (if your coming from another language that supports exceptions you may need to adjust your knowledge - php's exceptions are a little different - for instance they are not ever generated by the engine itself) does mysql_query(