MySQL Forums
Forum List  »  Newbie

Re: special characters
Posted by: Claude Martin
Date: February 05, 2005 05:26AM

sangi adisekaran wrote:
> Hello try inserting like
> d:\\sangi\\server\\sample.html
>
> When u reterive you will get
> d:\sangi\server\sample.html
>
> Iam assuming that you are in need of this.

so, wheres the problem?
for mysql you can use addslashes() in PHP
http://ch2.php.net/manual/en/function.addslashes.php

so you must use :

mysql_query("INSERT INTO table (foo) VALUES ('d:\\\\sangi\\\\server\\\\sample.html')");

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
January 14, 2005 06:14PM
January 15, 2005 04:43AM
February 04, 2005 07:31PM
Re: special characters
February 05, 2005 05:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.