For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2004 > Re: [PHP-DB] Re: escape characters









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Re: escape characters
Filip De Waard

2004-03-26, 11:12 pm


On Mar 22, 2004, at 12:17 PM, Jimmy Brock wrote:

> Matt, love your show!
>
> Use the addslahses function to escape ' " \ characters. See
> http://php.net/addslashes for details.


Actually, you shouldn't use addslashes, but a database specific
function like mysql_escape_string().

http://phundamentals.nyphp.org/PH_storingretrieving.php

Regards,

Filip de Waard

> Jimmy Brock
>
> "Matthew Perry" <mwperry@mail.uh.edu> wrote in message
> news:405E6BD8.9010502@mail.uh.edu...
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com