This is a discussion on "php While logic" within the PHP Forum section. This forum, and the thread "php While logic are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
php While logic
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
php While logic
can you help me fix this php code?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd"> <html> <head> <title>While Logic</title> </head> <body> <?php /* Demond Carson January 23, 2007 */ $Count = 0; while ($Count <= 100) { $Numbers[] = $Count; ++$Count; foreach ($Count as $curNum) echo "<p>$CurNum</p>"; } ?> </body> </html> |
|
|
|
||||
|
Re: php While logic
$Count++; instead of ++$Count?
|
![]() |
| Tags |
| code not working, php help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Logic Problem involving loops and arrays | tox0tes | Other Programming Languages | 5 | Oct 28th, 2007 03:11 |
| Anybody use flow charts for logic design? | Donny Bahama | PHP Forum | 3 | May 8th, 2007 15:44 |
| Logic help | jayaime | JavaScript Forum | 4 | Aug 31st, 2006 14:28 |
| Benbacardi's code logic | netwarriorgizmo | JavaScript Forum | 2 | Jul 29th, 2004 09:53 |