Ver Mensaje Individual
  #9 (permalink)  
Antiguo 30/10/2009, 09:42
Avatar de sinai21
sinai21
 
Fecha de Ingreso: octubre-2009
Mensajes: 89
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: consultar fecha d-m-y

Cita:
Iniciado por gjx2 Ver Mensaje
Código php:
Ver original
  1. $Consulta=mysql_query("select * from asistencia;"); //Ejecuta el Query en la Base de Datos          
  2.            if (!$Consulta) {
  3.               echo("<p>Error al ejecutar el Query Sql.</p>");
  4.               exit();
  5.             }              
  6.            while($Fila = mysql_fetch_array($Consulta)) { //Ciclo Repetitivo mientras no sea fin de Archivo
  7.            $f = explode("-",$Fila["UsuarioFecha"]);
  8.             echo "<tr class='table_imagenes'>";            
  9.            echo "<td align='center' style='color: #666666; font-weight: bold;'>".date("d-m-Y",mktime(0,0,0,$f[1],$f[2],$f[0]))."</td>";
  10.            echo "<td align='center' style='color: #666666; font-weight: bold;'>".$Fila["empleado"]."</td>";
  11.            echo "<td align='center' style='color: #666666; font-weight: bold;'>".$Fila["h_entrada"]." </td>";
  12.            echo "<td align='center' style='color: #666666; font-weight: bold;'>".$Fila["h_salida"]."</td>";


GRACIAS AMIGO! me has sacado de apuros, y a los otros colaboradores tambien les agradezco SON EXELENTES