![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/10/2008, 07:33
|
![Avatar de djdraft](http://static.forosdelweb.com/customavatars/avatar229810_2.gif) | | | Fecha de Ingreso: abril-2008
Mensajes: 118
Antigüedad: 16 años, 10 meses Puntos: 0 | |
Respuesta: Seleccionar entre fechas... Pues muy facil
$fecha_inicio = month('camp_de_la_fecha_en_la_bd');
$fecha_final = month('camp_de_la_fecha_en_la_bd');
$fecha1 = 1;//partir desde este mes
$fecha =2;//hasta este mes
mysql_query("SELECT * from tabla WHERE $fecha1 = '$fecha_inicio' AND $fecha2='$fecha_final' ");
espero haberte servido
__________________ <img src="http://i280.photobucket.com/albums/kk197/djdraft22/DR.jpg"> |