This is really derivative of my earlier question today.
I created a Stored Procedure in my database that I wanted to call several times in a row from PHP.
Let\'s say
A stored procedure may return more than one result set and it will always return one extra result set that does not contain any data but the overall error/warning information about the procedure call in addition to any explicitly returned result sets.
source - http://forums.mysql.com/read.php?52,228296,228347#msg-228347