how to create a dynamic link to data which retrived from database?

how to create a dynamic link to data which retrived from database?

  
how to create a dynamic link to data which retrived from database?
Just for reference, this is a duplicate question from this one.