Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/10/2009, 09:38
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: consultar fecha d-m-y

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>";