I need to encode some data from an SQL database into a URL, but I cannot work out how to do it.
I have tried putting urlencode() in different places and storing them in variables.
Print "<td><a href =" .$_SERVER['PHP_SELF']. "?id=" . $info['id'] ." &name=" . $info['Name'] . "&author=" . $info['Author'] ."&subject=" .
$info['Subject'] . "&series=" . @$info['Series'] . "&mode=edit>Edit</a></td>";