Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/08/2009, 02:17
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 10 meses
Puntos: 416
Respuesta: como dar la fecha "menos" 2 meses ???

No compares fechas de esta manera:
if ($periodo_2 > date("Y/m/d"))

Asi simplemente comparas cadenas, tienes que usar timestamps.

Fecha - 2 meses: date("d-m-Y", strtotime("-2 month"));

http://www.php.net/manual/en/function.strtotime.php