TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Catering from quotes in text input (http://www.talkphp.com/absolute-beginners/4880-catering-quotes-text-input.html)

captainmerton 08-20-2009 10:19 AM

Catering from quotes in text input
 
This is probably a pretty obvious question but how do I cater for quotes in text input. Cant find anything on google searches. Essentially if someone enters a name such as o'neill this causes me problems. How do i tell the php code not to treat the quota or comma as php language so I can store it on a myswl database then display it again in the format it was entered i.e. o'neill?

Enfernikus 08-20-2009 11:24 AM

mysql_real_escape_string / addslashes


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

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0