Re: Alphabetical pagination
| From: | Miller, Terion | Date: | Wed, 15 Jul 2009 16:39:13 +0000 |
| Subject: | Re: Alphabetical pagination | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295434@lists.php.net to get a copy of this message | ||
--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)." ";
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,