/?pg=6&function=View&album=Products
Only saves in the database as /?pg=6
It displays it correctly as the full URL when I print it on the page.
Here's the link I provide for them.
Code: Select all
$pageURL = $_SERVER["REQUEST_URI"];
<a href=\"?pg=49&add=$pageURL\">Add this page to Pages I Like</a>Code: Select all
$add = $_GET['add'];
$query = "insert into favorites values('', '$add')";
$result = mysql_query($query);