Posted by joe on 02/02/06 03:30
I have a system where include files puts generated HTML into a variable
( $output ).
In one of the pages I have a function that executes SQL queries and
return nice arrays.
The command to abort an included script is 'return' - but not if you're
within a function. Then 'return' simply aborts that function.
If the query should fail for some reason, I'd like to overwrite $output
with a nice err. msg. and then abort execution of the included script
and return to the main script. But can that be done from within a
function ?
TIA
------
Aceb.
Navigation:
[Reply to this message]
|