Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/04/2015, 13:12
Avatar de MaNuX0218
MaNuX0218
 
Fecha de Ingreso: marzo-2014
Mensajes: 787
Antigüedad: 10 años, 1 mes
Puntos: 67
Respuesta: Sumar 1 año a la fecha

Código PHP:
Ver original
  1. $ph_venc = isset($_POST['ph']) ? date_add($_POST['ph'], date_interval_create_from_date_string("1 year")) : null ;

Así debería poder sumarte 1 año.

Para más info sobre date_add() http://php.net/manual/es/function.date-add.php

Saludos.
__________________
No te preocupes si tu código no funciona bien. Si todo lo hiciera, no tendrías trabajo.