Please help me how to make the function
who know how to add this function ??
special example from
Chat System> 19:29am
>methos enterd[/b]
>methos enterd[/b]
special example from
  $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");
  if($res)
  {
      $msg = getnick_uid($uid)."enter the room";  mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', userid='0', text='".$msg."'");
}
else
{
//just update the chonline list
}
dont remember if time sent is the  correct field name anyways after doing that ....in the chat room when fetching the items from ibwf_chat
eg $sql = mysql_query("SELECT userid,timesent,text FROM ibwf_chat");
while($item = mysql_fetch_array($sql))
{
if($item[0]=='0')
{
$item[0]="chat_system";
echo $item[0].$item[1].$item[2];
}
else
{
//print the items
}

Comment