OK Guys,
I know you gonna think this is pretty silly but I'm dying with trying to change the colour of the link text in this category list on my left menu bar. I need the top level categories to be blue and the child categoires to be red. I am not sure where to put the code so that each time it does a "PURL" or new ahref, it uses this info for the link colour. This has cracked me up for 3 days and its time I reach out and save myself from jumping off that bridge 🙁
If this doent make sense, post anything u think can help anywayz.
thanks ppl
Richard
<tr align=CENTER>
<td BGCOLOR="#9C0317">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2" BGCOLOR="#9C0317">
<TR ALIGN="CENTER">
<TD><font color="#FFCC00" size="2" face="Verdana">Products</FONT></TD>
</TR>
</TABLE>
</td>
</tr>
<?php
// Show only top level categories and categories that are
// being published
$q = "SELECT * FROM category, category_xref ";
$q .= "WHERE category.category_publish='Y' AND ";
$q .= "category_xref.category_parent_id='0' AND ";
$q .= "category.category_id=category_xref.category_child_id ";
$q .= "ORDER BY category.category_name ASC";
$db->query($q);
while ($db->next_record()) {
?>
<tr align=CENTER>
<td> <a class="Menu"
href=<?php $sess->purl(URL . "?page=shop/browse&category_id="
. $db->f("category_id"));?>
<?php echo $db->f("category_name"); ?></a></td>
</tr></font><TR ALIGN=CENTER><TD><font color="#FFCC00">
<?php
$ps_product_category->print_child_list($db->f("category_id"));
?>
</TD></TR>
<?php
}
?> <!-- End browse categories -->
<tr align=CENTER>
<td> </td>
</tr>