php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39069 Automatic Strip Slashes on MYSQL Retrieval
Submitted: 2006-10-06 20:14 UTC Modified: 2010-12-22 13:02 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tlagard at indianakappa dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.1.6 OS:
Private report: No CVE-ID: None
 [2006-10-06 20:14 UTC] tlagard at indianakappa dot com
Description:
------------
When I retrieve something from MySQL, I would like to use something like this: mysql_fetch_assoc($result, {FLAG HERE}) where the {FLAG_HERE} allows me to tell it to strip the slashes out automatically or not when it puts the data into the array.  Hopefully this make sense.

Thanks
Tom


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-22 13:02 UTC] johannes@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-22 13:02 UTC] johannes@php.net
All our magic handling of quoting proved to be more troublesome than it helps, we won't extend it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC