You can make link using HTML code : <a href="http://www.download.com/download/1212312?click=text">text</a> If this is not your answer then please let me know some detail....
I guess there are al least two ways to do it. 1. Analyze server logs and fetch these values from them. 2. Serve files with PHP, so you can write these values into database and then output necessary file.
I would do this ^^ or generate the code with php and then in your php file you can check what ?click= like this $click = $_GET['click']; //This will get the value text from the url and put it into a variable. //You could use this to generate the download link on the page $finddownload = mysql_query("SELECT downloadurl FROM downloads WHERE title=$click"); echo 'Download link: '; echo mysql_result($finddownload,0); PHP:
I was using this in the example $finddownload = mysql_query("SELECT downloadurl FROM downloads WHERE title=$click"); PHP: This would select a value from a column called downloadurl in a table called downloads where the title is the same as what click is equal to in your url. I am not sure what you are trying to get from your database or what you are trying to do so its hard for me to explain it much further.