开发者

url is not being inserted in database correctly

I am trying to insert http://www.urbandictionary.com/define.php?term=plagerism in mysql database. The data type is varchar(500).

But what i get in the field is

http://www.urbandictionary.com/define.php%3Fterm%3Dplagerism

Ca开发者_如何学运维n anyone help me explain how i can fix this.

Thanks


look at PHP's URLencode() and URLdecode() http://php.net/manual/en/function.urlencode.php


what is the code you use for inserting into database?

I would guess there is a part that reqrites part of the data to prevent SQL Injection...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜