jquery rotation php button link
===

I have a jquery text rotator that rotates text pulling from a database with PHP.
Here's a diagram: ( I just found out I wasn't allowed to post pictures yet because of my reputation so heres a link to it.

[here is the diagram][1]


The text then has a more info button to the side that will go to the corresponding page to the event ( So if one of the rotations is "Example Event" then the more info button will go to event.php?id=*6* if the row containing "Example Event"'s id is 6. Unfortunately, the moreinfo.php buttons link always goes to the first rotation corresponding page ( so if the first rotation is "Example Event" and "Example Event" has the id 6, then the more info button will always stay linked to the page where id=6 even when its a different rotation like "A Better Event" which has an id=8. 

Thanks for any help ( I know this my description is pretty confusing). Also, if you can tell what the problem is, can you explain your solution a little (I'm learning PHP and find looking at solutions to problems I have helps me learn a lot!) 


                        
                           <div id="rotate">
                            <?php
                              while ($row = mysql_fetch_assoc($result)) {
                                $id = $row['id'];
                              echo"
                                <font>
                                    ".$row['tag']."
                                </font>";
							}?>
                            </div>
                            </div>
                        <div class='grid_2'><a href='events.php?id=<?php echo $id;?>'><button id='eventinfo'>event info &raquo;</button></a></div>


  [1]: http://i.stack.imgur.com/sI6Mq.png