Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/02/2010, 16:28
Pregunton13
 
Fecha de Ingreso: enero-2010
Mensajes: 43
Antigüedad: 14 años, 3 meses
Puntos: 0
Como hago que esta tabla este ordenada al reves???

Tego una duda hay una forma de que esta tabla se cree con el ultimo registro en primer lugar?? asi como esta empieza con el primer registro en el primer lugar pero digamos que tiene que ir oordenada del ultimo en adelante y tambien hay una forma para por ejemplo ordenarlo de fecha mayor a fecha menor??? como se hace???

Código:
<div id="content">

<table border="0" width="446" cellspacing="0" cellpadding="0" style="text-align:left;margin:20px">
<?
 while($row = mysql_fetch_array($result)) {
 $id = $row["id"];
 $titulo  = $row["titulo"];
 $fecha = $row["fecha"];
 $nota = $row["nota"];
 $link = $row["link"];
?>	
				<tr>
					<td style="width:13px; background-color:#E1E1E1">&nbsp;</td>
					<td style="width:354px;background-color:#E1E1E1;font-family:Verdana;font-size:x-small" colspan="3">
					<? echo $titulo ?></td>
				</tr>
				<tr>
					<td style="width:13px">&nbsp;</td>
					<td style="width:168px">
					<img src="imagenes/noticias/<? echo $id?>.jpg" width="168" height="100" alt="" style="border:1px" /></td>
					<td style="width: 10px">&nbsp;</td>
					<td style="width:308px;font-family:Verdana;font-size:xx-small;color:#666666;text-decoration: none">
							Fecha: <? echo $fecha ?><br />
							Nota: <? echo $nota ?><br />
							<a target="_blank" href="<? echo $link ?>">mas información</a></td>
				</tr>
				<tr>
					<td style="width:499px;font-family:Arial;font-size:5pt" colspan="4"></td>
				</tr>
<?
}
?>
				</table>

</div>