Doc #52901 [Opn->Fbk]: addslashes for database queries

From: Date: Tue, 21 Sep 2010 15:00:17 +0000
Subject: Doc #52901 [Opn->Fbk]: addslashes for database queries
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5097@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52901&edit=1 ID: 52901 Updated by: philip@php.net Reported by: johnston dot joshua at gmail dot com Summary: addslashes for database queries -Status: Open +Status: Feedback Type: Documentation Problem Package: Documentation problem Operating System: ALL PHP Version: Irrelevant Block user comment: N New Comment: Where do you see this? Previous Comments: ------------------------------------------------------------------------ [2010-09-21 16:57:01] johnston dot joshua at gmail dot com Description: ------------ Please remove the cruft about using addslashes to escape data for database queries. It gives people the wrong idea. I know it says use mysql_real_escape string right after it, but even the suggestion of using addslashes gives new people the wrong idea. Tell them it's great for escaping strings for use in javascript or something. please! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52901&edit=1

« previous php.doc.bugs (#5097) next »