note 2115 modified in function.ociparse by sixd

From: Date: Mon, 05 Oct 2009 01:45:50 +0000
Subject: note 2115 modified in function.ociparse by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161309@lists.php.net to get a copy of this message
This calls stored procedure sp_newaddress, with :address_id being an in/out variable and :error_code being an out variable. <?php $sth = OCIParse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', '$lastname', '$company', '$address1', '$address2', '$city', '$state', '$postalcode', '$country', :error_code );end;" ); ?> Then you do the binding: <?php OCIBindByName ( $sth, ":address_id", $addr_id, 10 ); OCIBindByName ( $sth, ":error_code", $errorcode, 10 ); OCIExecute ( $sth ); ?> Hope this helps! --was-- This calls stored procedure sp_newaddress, with :address_id being an in/out variable and :error_code being an out variable. <?php $sth = OCIParse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', '$lastname', '$company', '$address1', '$address2', '$city', '$state', '$postalcode', '$country', :error_code );end;" ); ?> Then you do the binding: <?php OCIBindByName ( $sth, ":address_id", $addr_id, 10 ); OCIBindByName ( $sth, ":error_code", $errorcode, 10 ); OCIExecute ( $sth ); ?> Hope this helps! http://php.net/manual/en/function.ociparse.php

« previous php.notes (#161309) next »