Show Region Utility and Last Row of Recordset
Is there a way to use the Show Region Utility to show something only if the last row in a recordset has not been reached?
Basically, I'm trying to create a list of items from a recordset but I don't want my ending , to be displayed if the last row has been reached.
My current piece of code in the is this:
<?php do { ?><a href="browse-results.php?type=<?php echo $row_listingoptions['option_id']; ?>"><?php echo $row_listingoptions['option_name']; ?></a>, <?php } while ($row_listingoptions = mysql_fetch_assoc($listingoptions)); ?>
Is there a way to use mysql_num_rows($listingoptions); or something like that in the 'If' box of the Show Region Utility to do this?
Many thanks!