Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/03/2008, 01:23
xorcista
 
Fecha de Ingreso: marzo-2008
Ubicación: hco
Mensajes: 23
Antigüedad: 16 años, 1 mes
Puntos: 1
Re: [PHP-MySQL] mostrar el mayor valor primero

esta es una parte de mi código:

<? include ("conex.php");
$sql = "SELECT * FROM misistema";
$resp = mysql_query ($sql);
while ($row = mysql_fetch_array ($resp))
{
?>
<table width="700" border="0" align="center">
<tr>
<td width="341" bgcolor="#99CC00"><strong><? echo $row ["id"] ?></strong></td>
<td align="center" width="99" bgcolor="#FF0000"><strong><? echo $row ["entradas"] ?></strong></td>
<td align="center" width="100" bgcolor="#FFFF00"><strong><? echo $row ["salidas"] ?></strong></td>
</tr>
</table>
<?
}
?>

Lo de rojo es lo que quiero que se ordene de mayor a menor