PHP 8.5.0 Alpha 4 available for testing

Voting

: zero plus zero?
(Example: nine)

The Note You're Voting On

khkiley at adamsautomation dot com
12 years ago
SQL Server 2008 R2

If this was in the documentation, I didn't stumble across it. When using bound output parameters with a stored procedure, the output parameters are updated AFTER the LAST rowset has been processed.

If your stored procedure does not return any rowsets (no SELECT statements) then you are set, your output parameters will be ready as soon as the stored procedure is processed.

Otherwise you need to process the rows, and then:
<?php $stmt->nextRowset(); ?>

Once that is done for each returning rowset you will have access to the output parameters.

<< Back to user notes page

To Top