Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not sure of the concept

Status
Not open for further replies.

gokeeffe

Programmer
Jan 11, 2005
170
0
0
IE
How do I do the following:


I have a search results page that displays results

eg


Name

Address

Country

Interest

Subject

Level


What I want to do is add a field called More Details which will be a hyperlink

to another page which will display more specific details of that user.

For this to happen I will have to transfer the user_id from this page

to the next one in order to display the details of this user.

How do I do this I have no idea

I am using MySQL as my database.

Hope this makes sense.

Regards

Graham
 
Put the user id in the url of the hyperlink, like this:

echo "<a href=myfile.php?uid=$user_id>Details</a>\n";

Then, in "myfile.php", get the user id via $_GET['uid']
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top