--snip--- -- Well I almost have it with this, I keep getting an undefined index $letter error though and then it outputs the $menu how do I fix that //Create array with letters AND number sign $letters = range('A','Z'); array_push($letters, '#'); $menu = ''; foreach($letters as $letter) { $menu .= ($letter == $_GET['letter']) ? sprintf('%s ', $letter) : sprintf('<a href="browse.php?letter=%s">%s</a> ', $letter, $letter); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] ForEach Range Problems Miller, Terion
- Re: [PHP] ForEach Range Problems Bastien Koert
- Re: [PHP] ForEach Range Problems Miller, Terion
- Re: [PHP] ForEach Range Problems Bastien Koert
- Re: [PHP] ForEach Range Problems Miller, Terion
- Re: [PHP] ForEach Range Problems Shawn McKenzie
- Re: [PHP] ForEach Range Problems Miller, Terion
- Re: [PHP] ForEach Range Problems Bastien Koert
- Re: [PHP] ForEach Range Problems Miller, Terion
- Re: [PHP] ForEach Range Probl... Miller, Terion
- Re: [PHP] ForEach Range Probl... Bastien Koert
- Re: [PHP] ForEach Range Probl... Miller, Terion
- Re: [PHP] ForEach Range Probl... Miller, Terion
- Re: [PHP] ForEach Range Probl... Andrew Ballard