I'm sorry, let me explain some more.
I made both java arrays from the same MySQL database using this code:
PHP Code:
print "<script type=\"text/javascript\">\n";
print "var countryarr = new Array();\n";
$i = 0;
$result = mysql_query("select country from rates");
while ( $row = mysql_fetch_assoc($result))
{
print "countryarr[$i] = \"$row[country]\";\n";
$i++;
}
print "var ratearr = new Array();\n";
$i = 0;
$result = mysql_query("select rate from rates");
while ( $row = mysql_fetch_assoc($result))
{
print "ratearr[$i] = $row[rate];\n";
$i++;
}
echo '</script>';
The countries element is filled from the same database.
At first I thought the same thing, that the loop never ended. However it works correctly in Firefox.
It stops at whatever value is selected in the countries element. It then uses the same index in the rates array.
Basically what I'm saying is I think the condition does become false, because it works flawlessly in Firefox. Now I just need to figure out what's making it crash in IE.
Thanks for your help Vortex.