i got it working!!
but now i've been told you use
<?foreach (range(1, 30) as $temp_number) {
echo "$temp_number<br>";
}?>
this in the code
Search found 5 matches
- Tue Feb 03, 2009 4:40 am
- Forum: PHP - Code
- Topic: Basic foreach help
- Replies: 10
- Views: 656
- Tue Feb 03, 2009 3:06 am
- Forum: PHP - Code
- Topic: Basic foreach help
- Replies: 10
- Views: 656
Re: Basic foreach help
LOL i had no idea i had to install PHP i just downloaded and installed it
should that make a difference
should that make a difference
- Tue Feb 03, 2009 2:45 am
- Forum: PHP - Code
- Topic: Basic foreach help
- Replies: 10
- Views: 656
Re: Basic foreach help
I have pasted this into notepad ++ but it has come up with
"; echo " ".$letters[$i]." \n"; echo "
\n"; } ?>
This isn't a table with letters down 1 side and numbers on another, am i doing something wrong
"; echo " ".$letters[$i]." \n"; echo "
\n"; } ?>
This isn't a table with letters down 1 side and numbers on another, am i doing something wrong
- Mon Feb 02, 2009 12:04 pm
- Forum: PHP - Code
- Topic: Basic foreach help
- Replies: 10
- Views: 656
Re: Basic foreach help
So that'll do a to z but how do you create a column going 1 to 27 next to it
- Mon Feb 02, 2009 7:23 am
- Forum: PHP - Code
- Topic: Basic foreach help
- Replies: 10
- Views: 656
Basic foreach help
I would like so help with creating a basic table that has numbers 1 - 27 on one column and letters a - z on the other, but i want it created by foreach or a loop,
can anyone supply me with code for this
can anyone supply me with code for this