\n";
echo "| name | region |
\n";
while ($myrow = mysql_fetch_row($result)) {
printf("| %s | %s |
\n",
$myrow[0], $myrow[1]);
}
echo "\n";
printf("%s %s
", $PHP_SELF);
} else {
$result = mysql_query("SELECT distinct region FROM cia",$db);
while ($myrow = mysql_fetch_row($result)) {
printf("%s
", $PHP_SELF,
$myrow[0], $myrow[0]);
}
/* $result = mysql_query("SELECT * FROM cia",$db);
if ($myrow = mysql_fetch_array($result)) {
do {
printf("%s %s
\n", $PHP_SELF,
$myrow["region"], $myrow["name"], $myrow["region"]);
} while ($myrow = mysql_fetch_array($result));*/
}
?>