How to show bnuttons Active

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

How to show bnuttons Active

Post by Pirontech »

Hi,

i have a form to display the data from the data base (i mean pulled the data from the data base), for display the data i have no problem its fine....

But the form also have 8 Buttons (in <ul> <li>) tag my buttonns names are saved in the data base with the Field Show Order Field , here i m putting the code :

<ul>
<? $res=mysql_query("SQL_QUERY");
while($obj=mysql_fetch_object($res)) {
?>
<li><a href="<?$obj->URL ACTION?>"><?=$obj->BUTTON_NAME;?></a></li>
<? } ?>
</ul>
// here we have 7 Records in the DB so its repeat seven Times with Same <li> tag and Display the Different Button Name With Different URL action (which we already saved in the data base).

here my Problem start i want user Click on the Buton in <Li> tag its get selected for this URL(page) and when User Click on other Button li tag this one selecyed and first deselected, i have the selectwd Class but i have only one <li> tag so wheer to place the class ??????????


Please Reply, i m waiting for Suggestions And Answer..... PLZ PLZ
Post Reply