Re: [PHP-DB] difference between two dates

2003-01-19 Thread Rajesh Fowkar
On Sun, Jan 19, 2003 at 09:34:02AM -0500, John W. Holmes wrote: >> I tried this : >> >> $dobtimestamp = mktime(0,0,0,$cboMM,$cboDD,$cboYY); >> $todaytimestamp = time(); >> $txtAge = ($todaytimestamp - $dobtimestamp)/86400; >> >> It does not give me the expected output. >> >> Can anybody suggest

RE: [PHP-DB] difference between two dates

2003-01-19 Thread John W. Holmes
> In my application I am accepting Day, Month and Year from a Select List. > What I want to do is calculate the age of the person based on the above > selection. > > $cboDD is the day variable > $cboMM is the month variable > $cboYY is the year variable > > I tried this : > > $dobtimestamp = mkt