On Mon, 2008-02-18 at 23:05 -0500, nihilism machine wrote:
> I have a user saving a VARCHAR(255) field in a mysql db which has  
> single quotes in the text, how can i replace them so that they dont  
> fuck up my mysql command?

mysql_real_escape_string()

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

Reply via email to