Ver Mensaje Individual
  #17 (permalink)  
Antiguo 19/06/2007, 07:22
Doom_Lady
 
Fecha de Ingreso: junio-2007
Mensajes: 37
Antigüedad: 16 años, 11 meses
Puntos: 0
Re: necesito ayuda con el nuevo diseño de mi web

madre!! si me hablas en chino mandarín igual lo entiendo mejor!!

este es mi código, el que puse más arriba:



<table width="520" border="1" bordercolor="#6B8198">
<tr>
<td bgcolor="#526375"> <table width="100%" height="58" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="65" background="pruebaphp2/noticiasicon.jpg" bgcolor="#FFFFFF"> </td>
<td width="398" align="left" valign="middle">EN ESTE ESPACIO DEBERIA SALIR LA FECHA - que es el row fecha</td>
<td width="54" background="pruebaphp2/noticiasmicro.jpg"></td>
</tr>
</table>
<table width="520" height="24" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" background="pruebaphp2/noticiastitulo.jpg">EN ESTE ESPACIO DEBERIA SALIR EL TITULO DE LA NOTICIA - que es el row nombre</td>
</tr>
</table>
Aqui tiene que salir el cuerpo de la noticia que es el row NOTICIA con la foto si es que la tiene... y después en otra tabla igual se cargue la siguiente, así hasta la última de la semana

este es mi php actual:

<?php
include("conexion.php");
$tabla="tb_noticias";
mysql_select_db($database);
/*$resultado=mysql_query("SELECT * FROM `tb_noticias` WHERE fecha ='2006-01-23'
ORDER BY fecha DESC, id_noticia DESC",$link);*/
$resultado=mysql_query("SELECT * FROM `tb_noticias` WHERE fecha > (CURDATE() - INTERVAL 7 DAY) AND fecha <= CURDATE()
ORDER BY fecha DESC, id_noticia DESC",$link);//select * from tb_noticias ORDER BY fecha DESC, id_noticia DESC ****/
$num=mysql_num_rows ($resultado);
$orden=0;
if ($num == 0)
{
echo "<center>NO SE ENCONTRARON RESULTADOS VALIDOS</center>";
}
else
{
echo "<table cellpadding=3 cellspacing=0 width=520 >"; //***quitar el color de fonde de la tabla **
while ($row=mysql_fetch_array($resultado)){
$v=$row["foto"];
$variable=$row["id_noticia"];
echo "<tr><td width=520>";//INICIO
echo "<div align='justify'><font face=verdana size=1 color=white><b><i>".$row["fecha"]."</i><br>".$row["nombre"]."</b><br><br>";
echo $row["noticia"]."<br><br></font></div>";
if ($v == "1"){
echo "<div align='center'> <img name='$variable' src =administracion/fotos/$variable.jpg><br><br></div>"; } //else { echo "<img src =fotos/blanco.jpg><br>"; }
echo "</td></tr>";// FIN
}
echo "</table>";
}

mysql_close($link);

?>
</p></td>
</tr>
</table>

aqui termina la tabla

como ya has visto, en el noticiass.php se ven tooodas seguidas... en vez de como se ven en la plantilla...

Última edición por Doom_Lady; 19/06/2007 a las 07:37