Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6384613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:47:49+00:00 2026-05-25T02:47:49+00:00

Hi I am making a website where the users can visit eachother. Therefore i

  • 0

Hi
I am making a website where the users can visit eachother.
Therefore i need to make dynamic pages so that if i go to let’s say…

www.mypage.net/user.php?id=32

Then i would end up on John Smiths profile, and show his profile.
And if i went to id=54 then, my own profile would be shown.
I was just wondering, how would i go forward on this?
I already have the user id stored in a session when the user logs in, but how do i create the url so it looks like ?id=32 and not onlye user.php ?

Is there any good tutorials explaining this?
Thx in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:47:50+00:00Added an answer on May 25, 2026 at 2:47 am

    I can already sense that you are gonna get lots of downvotes. That’s because, you are not showing any effort and asking about stuff, that can be easily found on the net.

    This is the basic of what you want:

    $userid = (isset($_GET['uid']) ? $_GET['uid'] : NULL);
    
    if ($userid) {
        $userinfo = $DB->query_first("SELECT * FROM `users` WHERE `id` = '$userid'");
        print_r($userinfo);
    }
    

    You can already see, that you need to read about $_GET and of course about mysql querying.

    Further more, these types of concept related questions are more fit to Programmers. You should read SO’s faq.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a message board application. Users can make a post, each post requires
I am making a website where users can vote on which category a page
I am making a website where users can upload pictures and draw on them,
So I'm making a website that allows users to build contact lists. So their
Sorry for the newbie question! I'm making a small website that allows users to
I'm making a website with a page where users can sign up to win
Hey im making a website were you can send other users emails. My problem
I am making a search function on a website to let users search values
I'm making a website where users can log on and download files, using the
I am making a website where users can post 'Posts' and then users can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.