Hi all,
if I use this to get records
[php]
-
<a href="index.php?product=<?php echo $category_id; ?>&product_id=<?php echo $pr['product_id']; ?>"><?php echo $pr['name']; ?></a> </li> <?php } } ?> </ul>
[/php]
Then how can I apply different style to the clicked product, like if below code results:
product 1
product 2
product 3And then if some one click on product 1, it should be like this:
product 1
product 2
product 3And then if some one click on product 2, it should be like this:
product 1
product 2
product 3And then if some one click on product 3, it should be like this:
product 1
product 2
product 3I have tried with several things but have not succeeded yet. What is the best way to do this?
Thanks.
<?php
$cquery = mysql_query (“Select * From product Where category_id=$category_id”);
while ( $cr = mysql_fetch_array ($cquery)) {
while ( $pr = mysql_fetch_array ($cquery) ) {
?>