Chat help.....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Chat help.....

Post by Smackie »

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......
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

so basically, how to do everything. :?
  1. that'd be a pretty standard SELECT. http://dev.mysql.com/doc/mysql/en/select.html
  2. that's all on your message processing and output
  3. 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.
Post Reply