Ok, heres another one that hinged on that problem...i thought that the above would have sorted it out..but it didnt
I have the IP-to-country database.. i have a page with a country-dropdown box..pick a country in the box, and it displays the country's IP ranges..I am using an echo statement to show the ranges at the top of the page to verify..
PHP Code:
$query = $DB_site->query("SELECT * FROM ip_to_country WHERE COUNTRY_CODE2='$cc'");
while ($results = $DB_site->fetch_array($query))
{
$ip_from = long2ip($results[IP_FROM]);
$ip_to = long2ip($results[IP_TO]);
$country = $results[COUNTRY_NAME];
echo "$ip_from - $ip_to ";
eval('$range_from = "' . fetch_template('range_from') . '";');
eval('$range_to = "' . fetch_template('range_to') . '";');
}
eval('print_output("' . fetch_template('country_results') . '");');
}
The contents of range_to is
And range_from is similar ..
Yet when i run the code, it only displays the last IP-Range..rather like the first query only displayed the last username..the echo statement however displays all ranges as its supposed to"
Any ideas? I posted in Mod help too & bumped a few times, but nobody answered