- Home
- Categorie
- Coding e Sistemistica
- Coding
- Problema messaggi chat
- 
							
							
							
							
							Problema messaggi chatSalve gente!! Mi sapete dire perchè i messaggi della chat dopo 1 minuto spariscono? 
 [PHP]addtochat($uid, $rid);
 $timeto = 86400;
 $timenw = time();
 $timeout = $timenw-$timeto;
 $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
 $rname = $rooms[1];
 $nick = getnick_sid($sid);if ($action=="") { $check = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_chonline WHERE uid='".$uid."', rid='".$rid."'")); if($check[0]!=$uid){ mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");} 
 addtochat($uid, $rid);
 echo "<head>";
 echo "<title>$rname</title>";
 echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
 $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE unread='1' AND touid='".$uid."'"));
 if ($unreadpopup[0]<1)
 {
 echo "<meta http-equiv="refresh" content="20; url=chat.php?time=";
 echo "".date("dmHis")."";
 echo "&sid=$sid&rid=$rid&rpw=$rpw">";[/PHP]
 Grazie a chi mi sa rispondere:?