Doc #52901 [NEW]: addslashes for database queries

From: Date: Tue, 21 Sep 2010 14:57:01 +0000
Subject: Doc #52901 [NEW]: addslashes for database queries
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5096@lists.php.net to get a copy of this message
From: Operating system: ALL PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:addslashes for database queries 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 bug report at http://bugs.php.net/bug.php?id=52901&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52901&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52901&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52901&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52901&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52901&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52901&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52901&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52901&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52901&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52901&r=support Expected behavior: http://bugs.php.net/fix.php?id=52901&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52901&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52901&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52901&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52901&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52901&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52901&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52901&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52901&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52901&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52901&r=mysqlcfg

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