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

buenas!


deseo mostrar en una consulta de una tabla 'asitencia', elproblema esta en la fecha que quiero mostrarla en formato d-m-Y.

este es el codigo realmente no se como imlementarlo, agradeceria su colaboracion.GRACIAS!:

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