note 12421 deleted from ref.mssql by jimw

From: Date: Sat, 15 Dec 2001 22:26:20 +0000
Subject: note 12421 deleted from ref.mssql by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22893@lists.php.net to get a copy of this message
Working with text fields where we may get single qoutes "'" we need to escape for use with mssql. Replace ' with '' using this function works for me: function str_single($s) { return str_replace("\\", "", str_replace("'", "''", $s)); }

« previous php.notes (#22893) next »