Re: could anyone please help me with this date coding?

From: Date: Wed, 14 Feb 2001 00:27:34 +0000
Subject: Re: could anyone please help me with this date coding?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39540@lists.php.net to get a copy of this message
On Wed, 14 Feb 2001 09:26, Charles Mulford wrote: > Hi all! could anybody help me? I am fairly new to PHP and I inherited > these scripts from someone who doesn't work with me anymore. They seem > to puke on this portion while running them on win2k, latest php4 and > mysql. On Linux platform they work as they are supposed to. > thanks in advance! > > Charles Mulford > > ------------------------- > > $max_date = 90; > $ini_date = 0; > echo("\t<OPTION VALUE=\"NULL\"> </OPTION>\n"); > do { > $dis_date = date("D\. M\. d\, Y", strtotime ("+$ini_date day")); > $val_date = date("Y-m-d", strtotime ("+$ini_date day")); > echo("\t<OPTION VALUE=\"'$val_date'\">[$ini_date] > $dis_date</OPTION>\n"); > } > while (++$ini_date <= $max_date); > > ------------------------- Can you be a little more specific? Details of the error message and the line to which it refers might help diagnosis. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#39540) next »