I think you missunderstood.
Here is my code.
PHP Code:
CALL `CX_TEST`('%i', @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14);
SELECT @p1 AS `r_error_code`, @p2 AS `r_error`, @p3 AS `r_id`, @p4 AS `r_item_id`, @p5 AS `r_user_id`, @p6 AS `r_in_use`, @p7 AS `r_expiration`, @p8 AS `r_amount`, @p9 AS `r_new_id`, @p10 AS `r_new_item_id`, @p11 AS `r_new_user_id`, @p12 AS `r_new_in_use`, @p13 AS `r_new_expiration`, @p14 AS `r_new_amount`;
Let me explain. I call the CX_TEST procedure that using output parameters from @p1 to @p14. So after it's executed the only thing I have to do to select the variable values.
In this case I must run both scripts in one query but since I call the CX_TEST first and then the select the sql result will be empty.