Alright im making a simple chat room and i was wondering if anyone could answer some of my questions..
First question... ok how do i make it where it loops the command to show data thats in the mysql?.?
Second question is how would i make it when a user says something in the chat room it would look like this <username> instead of username ????
Third question is how can i make commands like..
/me is action
/msg for whisper
/ignore for ignore
and make it where everyone can see who is online.....
please help me......
Chat help.....
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
so basically, how to do everything. 
- that'd be a pretty standard SELECT. http://dev.mysql.com/doc/mysql/en/select.html
- that's all on your message processing and output
- those are apart of the message processing as well. Typically, we'd use a regular expression to determine of the message is a command, versus just speech. Once determining it's a command, you parse out what function(s) to call for the processing.