bzzrd2
10-03-2006, 07:06 PM
I currently have a number of links in PHP I want to change. My databse has a field "lname". What I want to do is to make these links A thru Z and when clicked, bring back the members whos last name start with the letter clicked. As a newb, I'm kinda lost here. Thanks!
Current Code:
<? if($type<>1) {?>
<a href="showcategory.php?type=1<? echo $strpass1;?>" class="small_link">current</a>
<?
} else echo " current";?>
|
<? if($type<>2) {?>
<a href="gallery.php?type=2<? echo $strpass1;?>" class="small_link">
change</a>
<?
} else echo " gallery";?>
|
<? if($type<>3) {?>
<a href="showcategory.php?type=3<? echo $strpass1;?>" class="small_link">
new today</a>
<?
} else echo " new today";?>
|
<? if($type<>4) {?>
<a href="showcategory.php?type=4<? echo $strpass1;?>" class="small_link">ending
today</a>
<?
} else echo " ending today";?>
|
<? if($type<>5) {?>
<a href="showcategory.php?type=5<? echo $strpass1;?>" class="small_link">expired</a>
<?
} else echo " expired";?>
|
<? if($type<>6) {?>
<a href="showcategory.php?type=6<? echo $strpass1;?>" class="small_link">all</a>
<?
} else echo " all";?>
Current Code:
<? if($type<>1) {?>
<a href="showcategory.php?type=1<? echo $strpass1;?>" class="small_link">current</a>
<?
} else echo " current";?>
|
<? if($type<>2) {?>
<a href="gallery.php?type=2<? echo $strpass1;?>" class="small_link">
change</a>
<?
} else echo " gallery";?>
|
<? if($type<>3) {?>
<a href="showcategory.php?type=3<? echo $strpass1;?>" class="small_link">
new today</a>
<?
} else echo " new today";?>
|
<? if($type<>4) {?>
<a href="showcategory.php?type=4<? echo $strpass1;?>" class="small_link">ending
today</a>
<?
} else echo " ending today";?>
|
<? if($type<>5) {?>
<a href="showcategory.php?type=5<? echo $strpass1;?>" class="small_link">expired</a>
<?
} else echo " expired";?>
|
<? if($type<>6) {?>
<a href="showcategory.php?type=6<? echo $strpass1;?>" class="small_link">all</a>
<?
} else echo " all";?>