Re: mysql escape character \'

From: Date: Tue, 07 Aug 2001 19:44:34 +0000
Subject: Re: mysql escape character \'
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61687@lists.php.net to get a copy of this message
Dear PHP-General (bit of strange, uh?), I guess what you are looking for is this: http://www.php.net/manual/en/function.addslashes.php Hope it helps. Regards, -- Stefan Hinz Geschäftsführer / CEO iConnect e-commerce solutions GmbH # www.js-webShop.com www.iConnect.de # Gustav-Meyer-Allee 25, 13355 Berlin # Tel: +49-30-46307-382 Fax: +49-30-46307-388 ----- Original Message ----- From: "hassan el forkani" <webmaster@warmafrica.com> To: <php-general@lists.php.net> Cc: <mysql@lists.mysql.com> Sent: Tuesday, August 07, 2001 4:32 PM Subject: mysql escape character \' > greetings; > > i'm not sure if this is a mysql or php issue so i'm posting to both lists, > > i'm developping a community web site with news, forums......; > while working on the admin section i noticed this behaviour: > > on my hosting platform (linux) > i need to replace single quotes by \' to properly insert the data into the > database and avoid errors > on my dev machine (win98) there is no need to do so as single quotes are > properly inserted and attempting to escape them actually inserts \' instead > of '; > > so the same code does not have the same output on windows and linux > > can someone explain?? > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <mysql-thread81834@lists.mysql.com> > To unsubscribe, e-mail <mysql-unsubscribe-hinz=js-webshop.com@lists.mysql.com> > Trouble unsubscribing? Try: > http://lists.mysql.com/php/unsubscribe.php > >

« previous php.general (#61687) next »