Username:
Password:
Remember me:
Register

Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)


Search forums via Google


0 Users appreciate this thread.

Chat with their usernames?
Started by JadenZeFudge
(2013-09-08 01:10:08)
PLMasterSSB (2013-09-08 04:12:10)
What are you talking about? Making a chat and and echoing the username? Easy, just make an insert query to your chat table and do a while loop, and in the loop, set a variable called $_SESSION['username'] then, make it echo the variable and the message.

It's more legit if you have a log in and register system.

This post has been edited one or more times, the last time was:
2013-09-08 04:14:15

PLMasterSSB (2013-09-08 04:13:22)
Don't worry dude. You weren't the only one who didn't know at first. I had a lot of trouble with this problem before.
PLMasterSSB (2013-09-08 11:30:04)
Well learn the very basics and especially learn the if, else, and elseif statements
11Drago (2013-09-08 18:53:14)
If you setted a session or cookie earlier in your login script, then (add a username field to the chat table) when inserting the username, use $_SESSION['username'] or $_COOKIE['username']. That is if you have them name correctly.
 

This topic is closed, so you can not post a comment.

This topic's ID: 53182

Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)




Total registered users: 8321
New registered users today: 7
Newest registered user: ElegantVulpes

©  Copyright 2026 3DSPlaza. All Rights Reserved