note 98942 added to function.mssql-bind

From: Date: Fri, 16 Jul 2010 18:39:44 +0000
Subject: note 98942 added to function.mssql-bind
Groups: php.notes 
Request: Send a blank email to php-notes+get-170921@lists.php.net to get a copy of this message
if you are experiencing difficulties binding an empty string because it is being converted to NULL by your driver try the following: if($var === ''){ //stupid hack to prevent mssql driver from converting empty strings to null. now they arent empty strings but they will get trimmed down to legth 0 ;-) $var = ' '; $type = SQLVARCHAR; $isNull = false; $maxLen = 0; } mssql_bind($stmt, $param_name, $var, $type, $is_output,$isNull, $maxLen); ---- Server IP: 69.147.83.197 Probable Submitter: 208.97.56.84 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-bind.php Edit -- https://master.php.net/note/edit/98942 Del: integrated -- https://master.php.net/note/delete/98942/integrated Del: useless -- https://master.php.net/note/delete/98942/useless Del: bad code -- https://master.php.net/note/delete/98942/bad+code Del: spam -- https://master.php.net/note/delete/98942/spam Del: non-english -- https://master.php.net/note/delete/98942/non-english Del: in docs -- https://master.php.net/note/delete/98942/in+docs Del: other reasons-- https://master.php.net/note/delete/98942 Reject -- https://master.php.net/note/reject/98942 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170921) next »