A little problem... my categories are already listed using another recordset. I also have the repeat thing going... this table is automatically updates, so - because I have to specify the [id] number in the brackets... I think it's going to cause some problems. I tried replacing [id] with [category_id] - thinking that it might work.. but, no luck.
Here's the code for my table:
HTML Code:
<table id="tbl" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><p><b>Category</b></p></td>
<td colspan="2"><p><b>Description</b></p></td>
</tr>
<?php do { ?>
<tr <?php
# Alternate Row Color, Block 2/3
echo " style=\"background-color:$color\""; ?>>
<td width="100"><p><?php echo $row_rsCategories['category_name']; ?> (<? echo $categories[1]['count'] ?>)</p></td>
<td width="300"><p><?php echo $row_rsCategories['category_description']; ?></p></td>
<td width="145"><p><a href="display_category.php?category_id=<?php echo $row_rsCategories['category_id']; ?>">View</a> | <a href="edit_category.php?category_id=<?php echo $row_rsCategories['category_id']; ?>">Edit</a> | <a href="javascript:BRB_PHP_DelWithCon('delete_category.php','category_id',<?php echo $row_rsCategories['category_id']; ?>,'Are you sure you want to delete this category?');">Delete</a></p></td>
</tr>
<?php # Alternate Row Color, Block 3/3
if ($color == $color1) {
$color = $color2;
} else {
$color = $color1;
}
?>
<?php } while ($row_rsCategories = mysql_fetch_assoc($rsCategories)); ?>
</table>