Page 1 of 1

Chat help.....

Posted: Tue Mar 29, 2005 1:30 am
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......

Posted: Tue Mar 29, 2005 5:35 am
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.