Wrox Programmer Forums
|
BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9
This is the forum to discuss the Wrox book PHP and MySQL: Create-Modify-Reuse by Timothy Boronczyk, Martin E. Psinas; ISBN: 9780470192429
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 12th, 2009, 12:55 AM
Registered User
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default Minor error in common.php?

In the code shown below it appears that the last line of code should start

_stripslashes_recurs

Only a novice would ask this question, that's me :-)


[IMG]file:///C:/DOCUME%7E1/Dave/LOCALS%7E1/Temp/moz-screenshot.jpg[/IMG][IMG]file:///C:/DOCUME%7E1/Dave/LOCALS%7E1/Temp/moz-screenshot-1.jpg[/IMG]
Code:
        foreach ($variable as $key => $value)
        {
            $key = ($top) ? $key : stripslashes($key);
            $clean_data[$key] = (is_array($value)) ?
                stripslashes_rcurs($value, false) : stripslashes($value);
        }
The Following User Says Thank You to Dave521r For This Useful Post:
tboronczyk (April 2nd, 2009)
 
Old April 2nd, 2009, 12:35 PM
Authorized User
 
Join Date: Jul 2008
Posts: 12
Thanks: 1
Thanked 1 Time in 1 Post
Default

You're right. The code should be:
Code:
            $clean_data[$key] = (is_array($value)) ?
                _stripslashes_rcurs($value, false) : stripslashes($value);
-Tim





Similar Threads
Thread Thread Starter Forum Replies Last Post
svchost .exe common language runtime error supasue VS.NET 2002/2003 0 October 25th, 2006 05:11 AM
app.minor Ardvisoor ASP.NET 2.0 Professional 0 June 1st, 2006 02:23 AM
Minor textual error chapter 12 bottom of page 406 haguna BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 0 April 16th, 2006 05:48 PM
Common question, not so common answer? flyin ADO.NET 5 March 24th, 2004 06:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.