Ver Mensaje Individual
  #7 (permalink)  
Antiguo 13/02/2017, 08:08
Avatar de aviweb2015
aviweb2015
 
Fecha de Ingreso: abril-2016
Ubicación: venezuela
Mensajes: 215
Antigüedad: 8 años, 10 meses
Puntos: 1
Respuesta: formato de fecha pdo

lo he solucionado gracias por su ayuda anexo como me quedo, sin su ayuda no fuera posible....


Código PHP:
Ver original
  1. while ($linea = $consulta->fetch(PDO::FETCH_ASSOC)) {
  2. echo "<tr>
  3. <td align=center>$i</td>
  4. <td align=center>{$linea['nombres']}\n{$linea['apellidos']}</td>
  5. <td align=center>{$linea['email']}</td>
  6. <td align=center>{$linea['mensaje']}</td>";
  7. ?>
  8. <?php
  9. $fecha = new DateTime($linea['fecha']);
  10. $linea['fecha'] = $fecha->format("d-m-Y");
  11. ?>
  12. <?php
  13. echo "<td align=center>{$linea['fecha']}</td>
  14. <td colspan='2'>
__________________
yoclens avilan

Última edición por aviweb2015; 13/02/2017 a las 08:21 Razón: modificaciones