Hows it going,
Funny I was just doing this this morning, what I like to do is (depending on if the data (that is your number 0,1,2 and the data you want in the dropdown)) is
$result=mysql("your_db","select * from your_table where etc",$handle);
//check to see if there are results (wont put that here)
assuming that there are,
while($ans=mysql_fetch_array($result)){
echo"<OPTION>";
echo $ans["num_data"], $ans["data"];
echo"</OPTION>";}
Of course all of this is in your select dropdown HTML
if you want to put all of that info in a link, just put an anchor inside of the <OPTION> tags.