TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 12-21-2008, 07:40 PM   #1 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Asterix Is This Good Enough?

I have the following function for cleaning data for use with MySLQ and I just wanted to make sure it was sufficient before I used it in a production environment.

PHP Code:
function clean($data)
{
    if(
ini_get('magic_quotes_gpc'))
    {
            
$data stripslashes($data);
    }
        
    return 
mysql_real_escape_string($data);

Thanks!
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good PHP Book Recommendation CMellor The Lounge 4 06-23-2008 11:28 AM
i need some good ideas about my website webtuto General 4 03-14-2008 12:33 PM
Ajax - any good tutorials? Brook Absolute Beginners 5 01-16-2008 05:02 AM
Good business communication. Village Idiot The Lounge 10 01-11-2008 08:43 PM
Thank you very much for such a good work KanaomiSS General 0 09-11-2006 06:59 AM


All times are GMT. The time now is 07:05 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design