note 12714 deleted from function.ocibindbyname by sixd

From: Date: Wed, 20 Nov 2013 19:47:29 +0000
Subject: note 12714 deleted from function.ocibindbyname by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197586@lists.php.net to get a copy of this message
Note Submitter: k_a_h_l_i_l at yahoo dot com ---- How to bind an nvarchar field: <?php $sql = "insert into my_table values (translate(:varname using nchar_cs))"; $stmt = OCIParse($conn, $sql); OCIBindByName($stmt,":varname", &$value, strlen($value) + 1, 1); $err = OCIError($stmt); if(!$err) { OCIExecute($stmt); $err = OCIError($stmt); } OCIFreeStatement($stmt); ?>

« previous php.notes (#197586) next »