Well basically i will be making a chat.
I was thinking that on the submit message bit too mute the room i could do something like this:
obviously the code above is not right right at all but you should understand that if you type :room_shutup it sets mute in the mysql to 1 which would mean no one called talk.PHP Code:<?
if($_POST['message'] == ':room_shutup'){
$update=mysql_query(UPDATE `chat` set `mute` '1'))
}else{
Add chat message here.
?>
But i was wondering how i could type like :mute_USERNAME and make it set the mysql update in there name bit to 1 on mute so they cant talk.
Thanks, if you understand!





Reply With Quote

