Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/07/2002, 11:15
Lors
 
Fecha de Ingreso: julio-2002
Mensajes: 20
Antigüedad: 21 años, 9 meses
Puntos: 0
Re: Mostrar Ordenamiento en una tabla

Saludos.

Cluster no me quedo muy claro e intente hacerlo como lo entendi con tu valiosa ayuda,nada mas que no me resulta, cuando doy clic en la liga del encabezado de la tabla me muestra el error de que la pagina no existe.

Este es el codigo: Aqui no esta completo por la restriccion de que el mensaje debe de ser no muy largo. Pero se encuentra lo que deseo hacer

Gracias de antemano por tu ayuda.
<head>
<title>Consultas a las bitacora</title>
<body bgcolor="#000066">
<body>
<?
$orden_campo="fecha";$sentido="DES& quot;;
include("conex.php");
$link=Conectarse();
switch($op) {
case "SWITCH":
$result=mysql_query("select * from bitacora where fecha='$Fecha' AND dispositivo='$op' ORDER BY '$orden_campo' '$sentido'" ,$link);
break;
}
.
.
{
?>
<FONT FACE="ARIAL" COLOR=#FFFFFF><H1><CENTER>CONSULTAS </CENTER></H1></FONT><HR><BR>
<TABLE WIDTH=100% BORDER=1 CELLSPACING=0 CELLPADDING=0 BORDERCOLOR="white">
<TR BGCOLOR="#99CC66">
<TD ALIGN=CENTER><FONT FACE="ARIAL" COLOR="#000066" SIZE=2><b>Nombre</FONT></b></TD>
<TD ALIGN=CENTER><FONT FACE="ARIAL" COLOR="#000066" SIZE=2><a href="$consulta.php?orden=fecha"</a><b>Fecha</FONT></b></TD>
</TR>
<?
if ($row = mysql_fetch_array($result)) {
do {
printf("<br><tr bgcolor=#99cc66><td align=top>%s</td><td>  %s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>",
$row["empleado"],$row["fecha"],$row["hora"],$row["dispositivo"],$row["actividad"],$row["evento"]);
}while ($row = mysql_fetch_array($result));
}
else
{
printf("<FONT FACE=ARIAL COLOR=#FFFFFF SIZE=5>No se encontro ningun registro!!!!!!</FONT><HR>");
}
mysql_free_result($result);
mysql_close($link);
?>