Skip to main content
Known Participant
October 2, 2009
Question

how do I link to a database entry?

  • October 2, 2009
  • 1 reply
  • 409 views

I'm using phpMySQL and I have created a sign up page and have added some profiles. I want to create a link to only one of the profiles. I can already create a search page with the recordset filtered to keywords but now I just want a link to one of the profiles not using a search page but a hyperlink.

This topic has been closed for replies.

1 reply

Participating Frequently
October 2, 2009

Include a query string in the hyperlink that contains the id for the user profile.For example, if the profile has an id of 125:

/mysamplepage.php?profile_id=125

The mysamplepage script would then simply retrieve the profile id from the query string and use it in the where clause of the SQL.