30 queries !! you could probably do it in 2 i guess....
STEP 1 :
a. have two table called category and titles.
b. category table has category_id, category_name
c. titles table has title_id, title_name, category_id
so basically the titles table has category_id which it references from the category table;
eg
category table
1|html
2|java
3|php
title table
1|creating tables|1
2|creating forms|1
3|awt|2
4|applets|2
5|running php scripts with cron|3
6|form validation|3
STEP 2: connect to db and display the way it is at the url you gave<BR>
<?php
$host = "your_host";
$user = "your_username";
$pwd = "your_password";
$database = "your_database";
mysql_connect($host,$user,$pwd);
mysql_select_db($database);
$query = "select * from category order by category_name";
$result = mysql_query($query);
?>
<table border="1">
<?
$count = 1;
while($row = mysql_fetch_array($result)){
if($count%3 ==1)
print("<tr>");
print("<td>");
?>
<b><?php print($row['category_name']); ?></b><br>
<?
$title_query = "select * from title where category_id='".$row['category_id']."'";
$title_result = mysql_query($title_query);
while($title_row = mysql_fetch_array($title_result)){
echo $title_row['title_name']."<BR>";
}
print("</td>");
if($count%3 == 0)
print("</tr>");
$count++;
}
?>
</table>
<?php mysql_close(); ?>
hope this helps
reg
kevin