you can also run a php function before to weed out any bad names
before they go into the javascript
<?php
$result = mysql_query($query);
$k=0;
while($row =
mysql_fetch_array($result,MYSQL_ASSOC))
{
$nation =
"{$row['country']}";
$j=0;
while( ( $country[$j] !=
$nation ) && ($j<= $i))//this while loop matches countries with their
codes and thr$
{
$j++;
}
if ( $country[$j] == $nation )
{
$place[$k] =
"$code[$j]";
$value[$k]=
"{$row['SUM(usd)']}";
$k++;
}
}
?>
that is what the last bit of code is doing here, comparing a list of
names and their codes to the output of mysql query
goodluck
On Dec 26 2010, 7:07 am, Viz Kid <[email protected]> wrote:
> Hi
>
> "Russian Federation" is recognized but only in markers mode. In the regions
> mode you must specify the county name as a string (for example, "England"),
> or an uppercase ISO-3166 <http://en.wikipedia.org/wiki/ISO_3166-1> code or
> its English text equivalent (for example, "GB" or "United Kingdom").
>
> Hope this helps,
>
> Viz Kid
>
>
>
>
>
>
>
> On Sun, Dec 26, 2010 at 6:03 AM, ruiwen <[email protected]> wrote:
> > I am using geomap (http://code.google.com/apis/visualization/
> > documentation/gallery/geomap.html) and having a trouble.
>
> > The country name "Russian Federation" cannot be recognized. Only "RU"
> > is supported. "RUS" does not work either. Any solution? Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Visualization API" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-visualization-
> > api%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-visualization-api?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.