note 7860 deleted from function.stripslashes by aidan

From: Date: Sun, 29 Aug 2004 10:24:25 +0000
Subject: note 7860 deleted from function.stripslashes by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75545@lists.php.net to get a copy of this message
Note Submitter: mike dot parent at ns dot sympatico dot ca ---- [Editor's note: Actually, the function to properly escape single quotes in a database query is addslashes(), not stripslashes. --erica@php.net] Also important when you are passing a select query of a text field to mysql. I have a web form for issuing commands directly to the database and I needed to use stripslashes to correctly issue things like: select * from members where membername='Fred' Mike Parent

« previous php.notes (#75545) next »