Hello,
I was hoping that someone can help me with this. I have this linking list working, but I have one problem, when I click on the link it shows up with the link like this
winner.php?service=1&&year=2010
and
honorable.php?service=1&&year=2010&award=1
this is for all years not just 2010, and what I need it to do is show
winner.php?service=AM&&year=2010
and
honorable.php?service=AM&&year=2010&award=Notables
I have looked in my db, and the values are correct, so I know that is not the issue.
<ul>
<?php
$row['year']='2010';
while($row['year']>'2000') {
?>
<li>
<?php
if($row['service']='AM' && $row['award']='Winner') {
?>
<a href="winner.php?service=<?php print $row['service'];?>&year=<?php echo $row['year'];?>"><?php echo $row['year'];?></a>
<?php
}
if($row['service']='AM' && $row['award']='Notables' || $row['award']='Honorable Mentions' ) {
?> | <a href="honorable.php?service=<?php echo $row['service'];?>&year=<?php echo $row['year'];?>&award=<?php echo $row['award'];?>">Honorable Mentions</a>
<?php } ?>
</li>
<?php
$row['year'] =$row['year'] -1;
if ($row['year']=='2000'){
break;
}
}
?>
</ul>
I have not been able to find the solution, I would appreciate any help you can provide.
Thanks,