![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/02/2010, 13:33
|
![Avatar de angel1993](http://static.forosdelweb.com/customavatars/avatar325038_2.gif) | | | Fecha de Ingreso: octubre-2009
Mensajes: 752
Antigüedad: 15 años, 4 meses Puntos: 22 | |
Respuesta: Problema con mostrar edad un error es
$mesp=substr($row[edad],4,5);
tiene que ser
$mesp=substr($row[edad],5,2);
-----------
Pero lo malo es que si nacistes el 2009-12-09
Te muestra esto
tienes 1 año -10 meses.
y aparte que el mes cambia cuando se cambia de mes y quiero que sea en la fecha exacta osea mes y dia..
¿alguna manera? |