depending on the size I guess you could run a foreach loop
ex.

$num = 0;
foreach ($ringb as $val) {
 print "x[$num] = '$val';\n";
 $num += 1;
}

so it pretty much just cycles through your array and prints it out in
javascript form...

"Chris Payne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there everyone,
>
>
>
> I set an array using the following in PHP:
>
>
>
> $ringb[$i]="$complex_area";
>
> $i++;
>
>
>
> It cycles through my DB and stores the info, my question is, how can I
> convert it to a value that can be read in Javascript?
>
>
>
> I'm stumped.
>
>
>
> Chris
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to