php - Store and retrieve $_GET statement from mysql -
almost got need, but...
i have stored url in mysql database. (http://example.com/page.php?ex='$_get[ex]'
) when retrieve create dynamic link gives me http://example.com/page.php?ex=%27.$_get[ex].%27
, of course won't work.
i can't seem able (sorry had use it!) $_get
variable.
to exact cell contains...
submit risk assessment<button><a href="risksearch.php?ex='.$_get[ex].'">create / edit</a></button>
any appreciated.
it seems string have been encoded urlencode
you should decode url encoded string
$a = urldecode('http://example.com/page.php?ex=%27.$_get[ex].%27'); echo $a; // print url
Comments
Post a Comment