Prepare and MSSQL

From: Date: Tue, 11 Mar 2003 20:23:14 +0000
Subject: Prepare and MSSQL
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4162@lists.php.net to get a copy of this message
I am inserting a body of text into MSSQL2000. It prefers quotation marks to be doubled to escape. I tried out prepare() and ended up with THREE slashes and a database error. Does anyone have a solution? Here's an example of what I have going on: $text = "this is someone's input"; $stmt = "INSERT INTO tablename SET Textfield = '?' "; $dbh = connectDB(); $sth = $dbh->prepare($stmt); $dbh->execute($sth, $text); Thanks, Joshua Groboski

« previous php.pear.general (#4162) next »