Forum Moderators: coopster

Message Too Old, No Replies

mysql_query() OR

         

jackvull

12:39 pm on Jun 30, 2006 (gmt 0)

10+ Year Member



Is it possible to have multiple statements after the OR

For example mysql_query($SQL) OR {trigger_error(mysql_error(); die(mysql_error();))}

jatar_k

5:04 pm on Jun 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't think so

did you try it, did it work? You should be able to use trigger_error on it's own to do what die does.

adni18

7:51 pm on Jun 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using throw and catch.

eeek

7:56 pm on Jun 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try using throw and catch.

Or just call a function.