Thread: PHP in a link?
View Single Post
  #1  
Old 01-28-2009, 10:00 AM
Saphira Saphira is offline
Member
 
Join Date: Jan 2009
Posts: 89
Credits: 8,107
Saphira
Default PHP in a link?

Okay, I've created a new user profile page for the script, but I'm having some issues linking it up. How can I create a link, where half of it depends on the users ID? For example, www.yourdomain.com/viewprofile.php?id=1 will direct you to the users page who has the user ID of 1. But I have no idea how to set this up, so that if a user clicks a profile link, it will echo their ID from the database into the ?id=* bit.

I hope this makes sense, because it's a lot harder to explain than I thought it'd be. Heh.

Cheers!
Reply With Quote