Re: Escape Data In/Out of db [solved]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tedd wrote:
>> I think you want to look for magic_quotes_gpc
>>
>>
>> -- 
>> Thanks!
>> -Shawn
>
>
> -Shawn:
>
> You were right.
>
> I'll fix it.
>
> Thanks,
>
> tedd

I normally have a prep4display() and prep4store() type function that do
all of the sensitization/prep for either storing or displaying.  So
prep4display() has a check for magic_quotes_gpc for which it does
stripslashes() if they are on and then htmlentities() etc.. and the
prep4store() can do mysql_real_escape_string() and whatever else.

-Shawn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux