0) { $and .= " AND age=$age"; } if ($region > 0) { $and .= " AND regionid=$region"; } if ($prefs > 0) { $and .= " AND preference=$prefs"; } $query = "SELECT childcolor,count(*) FROM passport WHERE regcolor<>childcolor $and GROUP BY childcolor"; $res1 = mysql_query($query); $num1 = mysql_num_rows($res1); $query = "SELECT count(*) FROM passport WHERE regcolor=childcolor $and "; $res2 = mysql_query($query); list($num2) = mysql_fetch_row($res2); if (($num1 + $num2) == 0) { $error = 2; include("stats.php3"); exit; } ?> STATISTICS
 
Region: $name "; ?>
Age: $descr"; ?>
Preferences: $descr"; ?>

\n"; } ?> \n"; ?>
$count visitor"; if ($count>1) print "s"; print " wanted to change color to "; print "
$num2 visitor"; if ($num2 != 1) print "s"; print " didn't want to change their passport's color"; if ($num1 == 0) { print "
0 visitors wanted to change the color"; } print "
www.andreja.org