On Fri, Jul 31, 2009 at 2:51 PM, Miller,
Terion<tmil...@springfi.gannett.com> wrote:
>
>
>
> --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&nbsp', $letter)                                : sprintf('<a 
> href="browse.php?letter=%s">%s</a>&nbsp;', $letter, $letter);                 
>          }
>



What if you just add a

$letters = '';

at the top?

-- 

Bastien

Cat, the other other white meat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to