</style><?php
require('connect.php');
require('chatframe.php');
$id = $_GET["id"];
if(empty($id)) Header("Location: chatframe.php");
 
$sql = "SELECT ID, nombre, IP, postime, mensaje";
$sql.= "DATE_FORMAT(postime, '%d/%m/%Y %H:%i:%s') as enviado FROM messages ";
$sql.= "WHERE ID='$id' OR identificador='$id' ORDER BY postime ";
$rs = mysql_query($sql, $con);
include('chat.html');
if(mysql_num_rows($rs)>0)
{
    include('#');
    include('#');
    $template = implode("", file('chatframe.php'));
    while($row = mysql_fetch_assoc($rs))
    {
    $firma=$row["firma"];
        $color=($color==""?"#5b69a6":"");
        $row["color"] = $color;
        //manipulamos el mensaje
        $row["mensaje"] = nl2br($row["mensaje"]);
        $row["mensaje"] = parsearTags($row["mensaje"]);
        mostrarTemplate($template, $row);
    }
}
include('chat.html');
?> 
  
 
