Ver Mensaje Individual
  #12 (permalink)  
Antiguo 07/11/2012, 09:41
ofertasdiarias
 
Fecha de Ingreso: marzo-2011
Mensajes: 115
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: sitio estilo groupon

ahora ya no me aparecen los errores, arregle esta parte

HIGHLIGHT="PHP"]

$target_time = mktime (00,00,00,01,01,2012); AQUI PUSE LA FECHA YO, PERO LO QUE QUISIERA ES QUE LA FECHA SALIERA DE LA BASE DE DATOS?

$current_time = time();

$difference = ($target_time -$current_time);

$time = (int) ($difference/$row_ofertas['fecha_de_cierre']);
$days = floor ($difference/86400);
print "esta subasta termina en '$time' horas";
[/HIGHLIGHT]