Re: quotes

From: Date: Thu, 12 Jul 2001 10:53:11 +0000
Subject: Re: quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57567@lists.php.net to get a copy of this message
Hi, Of course you can. Replace ' with \' This is called escaping. Andras. ----- Original Message ----- From: "Heidi Belal" <hmbelal@yahoo.com> To: "Php" <php-general@lists.php.net> Sent: Thursday, July 12, 2001 1:39 PM Subject: [PHP] quotes > Hey, > I have a problem using apostrophes/single quotes. > I am using PHP and MySQL. The user enters data into > the text field and everything goes ok, until an > apostrophy/single quote is added in the middle of the > text - then disaster occurs! > Now i want to allow the user the ability of adding > apostrophies/single quotes. > As far as i understand the reason is because MySQL > accepts the text until the apostropy/single quote. So > my guess would be if that i should manipulate the text > before inserting into the database, such that it > doesn' include apostrophies/single quotes. But is > there something else i could place instead of the > apostrophy/single quote that would, when displayed, > show as an apostropy/single quote. > > Any ideas? Help would be great! > Heidi > > > ===== > Heidi Belal > ICQ# 32127109 > > A bus stops at a bus station. > A train stops at a train station. On my desk > I have a work station... > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#57567) next »