Yes it was, but you know what, I had use the wrong information, i been at this so long that i lost my mind. Sorry, if you could help me out with this.
Below is the code i have so far which isnt much.
I need to count table subcat and colum subcat where subcat colum matches category b
the below query shows me a list of all categorys, then in subcat table are a list of links and under colum subcat list the links categoryb
Categoryb list categorys like this...
categoryb | totalc
PHP | 23
ASP | 5
totalc meaning the amount of links in subcat/subcat
Should show up on page lik this...
ASP ( 7 )
PHP ( 23 )
and so on
Geeze i hope I make sence.....
<?
/* Select all categories from PpetType table */
$query = "SELECT * FROM categoryb ORDER BY catb_id ASC";
$result = mysql_query($query)
or die ("Couldn't execute query.");
$i = 0;
while ($row = mysql_fetch_array($result))
{
$i++;
if($i == 1)
{
echo "<tr>";
}
extract($row);
echo "<td valign='top' width='50%' class='productType'>\n";
echo "<img src=\"$SITE_URL/images/folder.gif\" align=\"absMiddle\" width=\"31\" height=\"30\"> <a href=\"$SITE_URL/Dir/directory.php?cate=$cate&categoryb=$categoryb\">$categoryb</a></font>
</td>
";
if($i == 2)
{
echo "</tr>";
$i=0;
}
}
?>