开发者

url is not being inserted in database correctly

开发者 https://www.devze.com 2023-02-07 17:19 出处:网络
I am trying to insert http://www.urbandictionary.com/define.php?term=plagerism in mysql database. The data type is varchar(500).

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

精彩评论

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

关注公众号