Hi all,
If anyone could help me out with this I would be very grateful - I am still struggling with this whole dates thing.
On my "activities" page I have the possibility for people to enter events or clubs. Events happening as a one-off event and clubs that happen of every day of the week.
What I want is that when someone visits the web page they want to know everything that happens on a Tuedsay, or, for example, everything that happenes tomorrow. I have most of it working but the only thing that I am struggling with (so far) is the entry of a date.
I have 3 pull down menus date_day, date_month and date_year and I simply want to put these together as a readable date format. (The "is_numeric" functions are there to check that these have been filled in and not the "day" field.
//this works..
$dia = $dia_1.$dia_2.$dia_3;
echo "dia: $dia_d <br>\n";
//This doesn't work
if ( (is_numeric($fecha_mes)) AND (is_numeric($fecha_dia)) AND (is_numeric($fecha_ano)) )
{
$fecha_evento = mktime(0, 0, 0, $fecha_dia, $fecha_mes, $fecha_ano);
}
echo "fecha_evento: $fecha_evento <br>\n";
I just get a blank ---> fecha_evento:
Any ideas?
Thanks
Jon