Hello folks,

Any way to retrieve the error code/error number from a stored proc.

Scenario
------------------

calling a stored proc from PHP - using mysqli_multi_query()
The stored proc has multiple queries. Lets say one of the queries generates
an exception.
How do I retrieve the error message within the procedure itself?

OR

Is there any way from PHP to get the last error msg? I tried with
mysqli_error().. Did not work..

Any inputs will be appriciated.

Thanks,
Ratheesh

Reply via email to