Hey,
This is probably a newbie question, but that is somewhat what I am to PHP. I need to create a two column table within a while statement.
<?php
$letter = $data['letter'];
$getCats = mysql_query("SELECT * FROM categories WHERE catName LIKE '$letter%' ORDER BY catName");
while ($cat = mysql_fetch_array($getCats)) {
$catID = $cat['catID'];
echo "<li><a href=\"category.php?letID=$letID&catID=$catID\">" . $cat['catName'] . "</a></li>";
}
?>
That is what I have right now, it is just listing them in an unordered list. I have googled how to make the two column table, but I don't understand what the code does, so I was wondering if someone could show me how to do it and what each part does.
I would be forever greatful for anyone's help,
Key