Can a WHILE be done inside an array?
| From: | Kenneth R Zink II | Date: | Sun, 01 Apr 2001 00:35:42 +0000 |
| Subject: | Can a WHILE be done inside an array? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46473@lists.php.net to get a copy of this message | ||
I'm trying to figure out how to do a WHILE inside of an array.
Here is the while statement.
$modyear = "1982";
$curyear = date("Y");
$curyear = $curyear + 1;
while($modyear <= $curyear){
echo "<option>".$modyear.;
$modyear++;
}
The array I want to use the WHILE in, looks like this. The X is where I
want to insert the WHILE.
'year' =>
array('Year','12','keyword','1:30','select','X','text'),
Here is what a functioning array statment in my script looks like for
referance.
'make' =>
array('Make','12','keyword','1:30','select','<option>Chevrolet<option>GMC<op
tion>Isuzu<option>Oldsmobile','text'),
Can someone please give me some pointers. =)
Thanks.
Kenneth R Zink II Hellcat1@S-Series.Org ICQ# 5095094
'87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!!
http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!!
http://www.s-series.org/htm/firestorm/firestorm.htm
'84 Oldsmobile Delta 88 Delta 88 Royal Brougham.
Racing by the grace of God!!!