note 7860 modified in function.stripslashes by erica

From: Date: Mon, 09 Sep 2002 06:55:11 +0000
Subject: note 7860 modified in function.stripslashes by erica
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36372@lists.php.net to get a copy of this message
[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 --was-- 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 http://www.php.net/manual/en/function.stripslashes.php

« previous php.notes (#36372) next »