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...
精彩评论