note 105908 deleted from function.mssql-execute by danbrown
| From: | danbrown@php.net | Date: | Mon, 26 Sep 2011 14:55:25 +0000 |
| Subject: | note 105908 deleted from function.mssql-execute by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183447@lists.php.net to get a copy of this message | ||
Note Submitter: ian_channing at hotmail dot com
----
Got the second example wrong in my previous note:
<?php
/**
* using OUTPUT param with one result set returned from stored procedure
*/
$outParamValue = 0;
mssql_bind($stmt, '@'.$outParamName, $outParamValue, $outParamType, $is_output = true);
$result = mssql_execute($stmt);
echo($outParamValue); /* will still be 0 */
mssql_next_result($result); /* N.B. see the Note above about this */
echo($outParamValue); /* correct output */
?>