Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

how do I link to a database entry?

New Here ,
Oct 02, 2009 Oct 02, 2009

Copy link to clipboard

Copied

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.

TOPICS
Server side applications

Views

375
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2009 Oct 02, 2009

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines