I have a database with a listing, i also have a page that shows me those records depending on different ways users search them (alot of $_GET....if this textbox has this, show these records....etc...) everything works great, but now i have a little problem. I have the letters from A to Z so that a user can click on any one of them to see which record starts with the approprate letter. the problem is that if a user clicks A --> it'll show ALL the records that start with A. I dont want to get stuck writings tons of if statements (because im not that apt with PHP) so is there a way to tell "show me the records AFTER the search results that start with A"
this is my code up to now
<?php $letters = range('A', 'Z');
for ($i = 0; $i < count($letters); $i++) {
print ' <a href="list.php?letter=' . $letters[$i] . '">' . $letters[$i] . '</a> -';
}?>
i dont know if what i explained makes sense, but if anybody can help, that would be greatly appreciated, since i have been at this for a while.....thank you