note 14560 deleted from ref.strings by tomsommer

From: Date: Wed, 15 Sep 2004 20:49:14 +0000
Subject: note 14560 deleted from ref.strings by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76798@lists.php.net to get a copy of this message
Note Submitter: rs234 at cornell dot edu ---- there's a problem when i used the addslashes function for my odbc connection... in order to fix it, I used the htmlspecialchars($str_var, ENT_QUOTES); instead and it worked fine. example is as follow: // $str - a string w/ single quotes $str = htmlspecialchars($str, ENT_QUOTES); . . . . $sql = "<something> $str <something>"; <etc.>

« previous php.notes (#76798) next »