On Saturday 21 December 2002 15:02, Justin French wrote: > If you're adding stuff to a database, and getting an error, use > addslashes(), then on the way out of the database, you need to > stripslashes(). Easy.
This seems to be a common misconception (yes, I did it too when I first started out) -- you don't stripslashes() when retrieving the data. The slashes that were added with addslashes() are _not_ stored when the data is inserted. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Most legends have their basis in facts. -- Kirk, "And The Children Shall Lead", stardate 5029.5 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php