Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/08/2008, 15:18
iozk
 
Fecha de Ingreso: mayo-2008
Mensajes: 499
Antigüedad: 16 años
Puntos: 1
como va la base de datos de este codigo

</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');
?>