Questions about PHP Login ideas

Source: Internet
Author: User
PHP Login Ideas Questions
Think for a while, no results, ask for ideas

The problem is as follows:
Now want to be a php+mysql chat room, to log in before entering the chat room,
A table records the user's registration information
A table to record the user's speech information


Now the question is how to output a speech with a user name

Now you can only output a statement, because after the statement is recorded to the database and then output from the database,
Do not know how to output a speech with a user name,
The way to do that is user name + speech
I do not know how the user name and speech are linked together.

Like many websites log in after the output of the comment is with the user name, do not know how to achieve, seeking ideas.

------Solution--------------------
... What's the idea? After login, the user name is saved in session.
When the output is added $_session[' UserName '; No, it's okay?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.