Turning a table into a list

I want to turn this table, into a category list:
(like craigslist.com list of categories)
[table]
[tr]
[td]

    <?php
		if(isset($groups) and $groups->num_rows()>0)


		{

		$i=0;

		foreach($groups->result() as $group)

		{
					?>
    <li id="gr<?php echo $i;?>" class="<?php if($i == '0') echo "selected"; ?>"><a href="javascript:;" onclick="getCat('<?php echo $i ?>','<?php echo $groups->num_rows ?>',<?php echo $group->id;?>);"><span><?php echo $group->group_name;?></span></a></li>
    <?php $i++;}

		}



		?>
  </ul>
</div>
<div class="clsInfoBox">
  <div class="block">
    <div class="grey_t">
      <div class="grey_r">
        <div class="grey_b">
          <div class="grey_l">
            <div class="grey_tl">
              <div class="grey_tr">
                <div class="grey_bl">
                  <div class="grey_br">
                    <div class="cls100_p">
                      <h4><span class="clsCategory"><?php echo $this->lang->line('CATEGORIES');?></span></h4>
                      <div class="clsCategoryList clearfix" id="catInner"> </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
[/td] [/tr] [/table]

It is highly appreciated your support, tips, and directions.

Sponsor our Newsletter | Privacy Policy | Terms of Service