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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:02:06+00:00 2026-06-17T13:02:06+00:00

I’m hoping someone can help explain this process in layman’s terms, since I’m still

  • 0

I’m hoping someone can help explain this process in layman’s terms, since I’m still “new” and learning.

I’ve built a basic content management system with a backend, and I’m trying to create a system where dozens of users can access a service, save data to their account, and recall that data at a later time if they choose.

Thus far I’ve got the login, registration, and forms (to save the data) complete. I’m just at a point where I don’t know how to save this data in MySQL (using PHP by the way) so that dozens of users can all save data vs. just one.

Example being: Dozens of users access WordPress and can create posts, while not being able to see the other users posts on their account.

I understand how to setup one account to save data, just not multiple.

Any advice would be greatly appreciated.

P.S. If anyone has any guides/tutorials/recommended articles to read, I’d be incredibly grateful!

  • 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-06-17T13:02:07+00:00Added an answer on June 17, 2026 at 1:02 pm

    I think you are missing a fairly important part in how PHP works.

    Each separate user uses a different instance of your application. For example, if I enter and login into the application, and you do the same, we will have (for example), the variable $_SESSION set, but I will have $_SESSION['idUser'] = 3, and you will have $_SESSION['idUser'] = 5. They will not know of each others existence.

    So basically, you need to think your application for a single user, with the appropriate restrictions. Meaning that, for example, if you want to create the edit profile page, you would use $idUser = $_SESSION['idUser'] in your SQL queries to select/update/insert the appropriate information.

    Here’s a sample query:

    // view users profile page
    $idUser = intval($_SESSION['idUser']);
    $query = "SELECT * FROM `users` WHERE id = {$idUser}";
    
    // edit profile checks/database update
    $idUser = intval($_SESSION['idUser']);
    $userData = $_POST['user']; // let's say all your inputs have a name="user[...]"
    // !!! validation for the user data !!!
    $query = "UPDATE `users` SET col1='{$userData[col1]}', col2='{$userData[col2]}' WHERE id = {$idUser}";
    

    Hope this helps, let me know if you need further clarifications.

    PS: Don’t forget to properly escape your data before using it in SQL queries, and use either mysqli or PDO extensions (do NOT use mysql, since it is deprecated, and will be removed in a future version of PHP).

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
Does anyone know how can I replace this 2 symbol below from the string
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I want use html5's new tag to play a wav file (currently only supported

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.