August 30th, 2000, 01:47 AM
i am trying to display a value, from query string which was urlencoded..like this
print "<a href='xx.php?prod=".urlencode(trim($row["productname"]))>";
the problem here is, data in table,($row) contains a double quotation mark which has to be printed as it is.
but it is displaying as "bear 7" inches" with an extra back slash.
i tried with rawurldecode() but i could'nt get the result.
any help will be much appreciated.
August 30th, 2000, 02:41 AM
Try putting a stripslashes() around the rawurldecode() call. Alternatively, you can read up on magic quotes stuff in the php.ini file.
To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson
August 30th, 2000, 09:36 PM
stripslashes()suggested by u worked.
thank u homer