add sp query to get retval

get retval on the php by using nextrowset twice.