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 6747357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:25:58+00:00 2026-05-26T12:25:58+00:00

I am currently working on a social networking website, and I would like the

  • 0

I am currently working on a social networking website, and I would like the user to be able to enter the web address of another user and be redirected to his profile. The thing is, every existing user has a column in a mySQL DataBase, which specifies what page templates does he use, and the data to be inputted into this template. How can i Possibly make it so that when he inputs of example : http://www.emuze.co/users/@bob_marly (it can have a .PHP/ .HTML suffix after it), the website will query the Database, find the template, redirect to that templates page (e.g. http://www.emuze.co/temps/temp1.0.php) and use the users that a from the mySQL Database?
I know its a very long and complicated question, but i would really appreciate any help!
thanks a lot! :@

  • 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-26T12:25:58+00:00Added an answer on May 26, 2026 at 12:25 pm

    You should give each user a row instead of a column, within a table that specifies which template is used for each user.

    For example, you would have the “templates”-table, with the columns “UserID”, “Username” and “Template”. Then, the table would look something like this:

    +--------+----------+----------+
    | UserID | Username | Template |
    +--------+----------+----------+
    |      1 | John     | temp1.0  |
    |      2 | Paul     | temp1.1  |
    |      3 | Eric     | temp1.0  |
    |      4 | Frank    | temp1.2  |
    +--------+----------+----------+
    

    …and soforth.

    Then you’d have to query which template a user has. For example, to know which template the user with UserID ‘3’ uses, assuming your mysql connection resource is stored in the variable $link:

    $query = "SELECT * FROM templates WHERE UserID=3";
    $result = $link->query($query);
    $row = $result->fetch_assoc();
    

    $row[‘Template’] will result ‘temp1.0’ which you could use for including a specific CSS-stylesheet, including specific PHP-files or whatever, but you can also retrieve all other user-specific information such as $row[‘Username’]. No need for redirections.

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

Sidebar

Related Questions

I'm working on a user based, social networking type of web application in Django.
I am currently working on a web app for social networking site but it
I am developing a social networking site. It has functionality like user registration, people
I'm currently working on a project about social networking, where I have some problems
We are building a social networking website for students and teachers. and currently we
I'm currently working on a small social networking application and right now I'm trying
I'm currently working on two social networking sites that have a lot in common,
I'm currently working on a social networking site. (Yeah, I know, there's a whole
I'm currently working on a social web application using python/django. Recently I heard about
Currently working with NSURLConnection. Found a great website showing important delegate methods coming with

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.