Andre's code will throw an error. for the following line
    
     $d = $todayh[mday];
     $m = $todayh[mon];
     $y = $todayh[year];
"Notice : Undefined constant mday ,mon,year"
As is, it was looking for constants called mday, mon, year etc. When it doesn't find such a constant, PHP interprets it as a string. 
like any other request it should be wrapped in quotes like this
     $d = $todayh['mday'];
     $m = $todayh['mon'];
     $y = $todayh['year'];

 
                       
                
                       
			     
			 
                 add a note
 add a note