
26/09/2008, 16:55
|
| | Fecha de Ingreso: mayo-2008
Mensajes: 499
Antigüedad: 16 años, 10 meses Puntos: 1 | |
Respuesta: php foro listo pero.... ya lo tengo pero ahora no muestra ningun texto en el foro
aqui est el codigo
foro.php
<style type="text/css">
<!--
body {
background-color: white;
}
a:link {
color: #FFFFFF;
}
a:visited {
color: #FFFFFF;
}
a:hover {
color: #CCCCCC;
}
a:active {
color: #FF0000;
}
-->
</style>
<?php
@session_start();
require('configuracion.php');
require('funciones.php');
$id = $_GET["id"];
if(empty($id)) Header("Location: index.php");
$sql = "SELECT id, autor, titulo, mensaje, ";
$sql.= "DATE_FORMAT(fecha, '%d/%m/%Y %H:%i:%s') as enviado FROM foro ";
$sql.= "WHERE id='$id' OR identificador='$id' ORDER BY fecha ASC";
$rs = mysql_query($sql, $con);
include('header.html');
if(mysql_num_rows($rs)>0)
{
include('res.html');
include('titulos_post.html');
$template = implode("", file('post.html'));
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('footer.html');
?>
y este codigo que se supone lo postea
<head>
<style Type='text/css'>
b{
color:black;}
</style>
</head>
<table width="90%" border="1" align="center" cellpadding="2" cellspacing="2" bordercolor="#000000">
<tr bgcolor="<?=$color?>">
<td width="25%" valign="top" bgcolor="gold"> <b><a name="<?=$id?>">
<?=$autor?></a>
</b><br>
<font size="2">Enviado el : <?=$enviado?></font> </td>
<td bgcolor="orange"> <table width="100%" border="2" cellspacing="1" cellpadding="1">
<tr>
<td bgcolor="orange"><strong><font size="-1">
<?=$titulo?>
</font></strong> </td>
<td width="10%" align="right">
<?
if(isset($_SESSION['s_username'])){
?>[ <a href="respuesta.php?id=<?=$id?>&citar=1" ><b>CIT</b></a>
]
<?
}
?></td>
</tr>
</table>
<hr align="center" width="100%" size="2">
<?=$mensaje?></td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
</table> |