0 Users appreciate this thread.
Chat with their usernames?
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.
^ Click
(This Image was created from cooltext.com)
PLMasterSSB (2013-09-08 11:30:04)Well learn the very basics and especially learn the if, else, and elseif statements
^ Click
(This Image was created from cooltext.com)
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.
Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)
New registered users today: 7
Newest registered user: ElegantVulpes
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.
2013-09-08 04:14:15
^ Click
(This Image was created from cooltext.com)