Re: Alphabetical pagination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





--snip----


How do I write the for each loop in here:

   //alphabetical pagination links                                                                    if (!isset($_GET['letter'])) {$letter = "A";} else {$letter = $_GET['letter'];}                                                                    echo '<div align="center"><b>';                                                                    for ($i=65; $i<90; $i++) {                                                                    if ($letter!= chr($i)) {echo '<a href="browse.php?letter='.chr($i).'">';}                                                                    echo chr($i)."&nbsp;";                                                                    if ($letter!= chr($i)) {echo '</a>';                                                                                                                                        ----->>> for each letter pull out those restaurants names and reload the page ....                                                                                                                                                                                                                                                                                                                                                            }                                                                    }

Or is that passed in the isset portion,

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux