Subject | how to capture last exception (from stored procedure) in PHP ? |
---|---|
Author | hamacker |
Post date | 2004-11-05T14:30:22Z |
Hi guys,
I have one store procedure that some part is :
if (:ncount > 0 ) then
begin
EXCEPTION ERROR_SP_GENERIC 'You cant delete existing tickets
dependences';
result_value=0;
suspend;
EXIT;
end
In PHP, the error is OK, but none message.
I try like this :
if ($my_sp->RESULT_VALUE == 0) {
echo "Ops! Error :<br>";
echo ibase_errmsg(); }
But ibase_errmsg() always returning nothing.
There is a solution or workaround for this problem ?
There are some functions in PHP that returning the last warning message?
--
[]'s
I have one store procedure that some part is :
if (:ncount > 0 ) then
begin
EXCEPTION ERROR_SP_GENERIC 'You cant delete existing tickets
dependences';
result_value=0;
suspend;
EXIT;
end
In PHP, the error is OK, but none message.
I try like this :
if ($my_sp->RESULT_VALUE == 0) {
echo "Ops! Error :<br>";
echo ibase_errmsg(); }
But ibase_errmsg() always returning nothing.
There is a solution or workaround for this problem ?
There are some functions in PHP that returning the last warning message?
--
[]'s