sample : ($subcat is the ID of the island selected and works well until airport_id22)
$isql="SELECT airport_name,airport_code,region_name from airport,island,region WHERE airport_id=island_id AND region_id=airport_region AND airport_island='$subcat' ";
$iresult=mysql_query($isql);
while($row=mysql_fetch_array($iresult)){
$ipozadi=($ipozadi=='F0F0F0'?'FFFFFF':'F0F0F0') ;
$id_island=$row['island_id'];
extract($row);
echo "<tr bgcolor=\"#" . $ipozadi . "\">\n";
echo "<td style=\"height: 21px; color: windowtext;font-size: 10.0pt; font-weight: 400; font-style: normal;text-decoration: none; font-family: Arial; text-align: general;\"><b>$airport_name</td>";
echo "<td style=\"height: 21px; color: windowtext;font-size: 10.0pt; font-weight: 400; font-style: normal; text-align:center;font-family: Arial; \"><b>$airport_code</td>";
echo "<td style=\"height: 21px; color: windowtext;font-size: 10.0pt; font-weight: 400; font-style: normal; text-align:center; font-family: Arial; \">$region_name</td>";
echo "<tr>\n";
pls see the database screenshot
[ATTACH]4753[/ATTACH]
city.jpg