Hi there,
Ive created a dance school directory and im wanting to display the total number of schools in each region so
London (10)
but im using dreamweaver and cant figure out how to create the sql to use the total records found for each region.
i have two tables for the countrys and regions:
Countrys:
id | Name | Desc
Regions:
id | Name | Parent | Desc
and in the school table where school info is held it contains both country and region.
and the area that calls the repeate region:
<?php do { ?>
<li><a href="schools.php?country=<?php echo $HTTP_GET_VARS['country']; ?>®ion=<?php echo $row_getgegions['name']; ?>"><?php echo $row_getgegions['name']; ?></a></li>
<?php } while ($row_getgegions = mysql_fetch_assoc($getgegions)); ?>
here is is working: http://www.letsdancetheirishway.com/schools.php
And also, any idea to break the long lists into two colums?? ie America, all of them are down in one line. Looks a little messy.
Thanks in advance.
Danny