Re: [PHP-DB] Help with displaying rest of page after MySQL error

2001-03-17 Thread Chris Vargas
"Stuart J. Browne" <[EMAIL PROTECTED]> wrote: > Die meaing just that. "Die". Don't process > anything further. Got it: for some reason I thought it would not process any further PHP but then continue with processing the HTML. I see that it kills the HTML too (at least it does for me). Your sug

Re: [PHP-DB] Help with displaying rest of page after MySQL error

2001-03-17 Thread JJeffman
Get the "die" statement off, and check if your query succeeds, if no, let the rest of script go ahead : $db = @mysql_pconnect (); if( $db){ $query = """; } // here goes the rest HTH Jayme. -Mensagem Original- De: Chris Vargas <[EMAIL PROTECTED]> Para: <[EMAIL PROTECTED

Re: [PHP-DB] Help with displaying rest of page after MySQL error

2001-03-16 Thread Stuart J. Browne
""Stuart J. Browne"" <[EMAIL PROTECTED]> wrote in message 98ujpk$i2j$[EMAIL PROTECTED]">news:98ujpk$i2j$[EMAIL PROTECTED]... > > My first line of PHP code (embedded in HTML) has: > > > > $db = mysql_connect("x","y","z") or > > die("saysomethinghere"); > > > > If I have a connection problem, it do

Re: [PHP-DB] Help with displaying rest of page after MySQL error

2001-03-16 Thread Stuart J. Browne
> My first line of PHP code (embedded in HTML) has: > > $db = mysql_connect("x","y","z") or > die("saysomethinghere"); > > If I have a connection problem, it does print the > "die" message and the connection error, but it also > stops the page right there: no more HTML is displayed. Well, you've