On Wed, 25 Aug 2004 20:18:23 -0400, Chris Payne <chris_payne@xxxxxxxxxxxxxxxxx> wrote: > 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 > Output javascript code in HTML that would assign values to variables. Asimple example would be <script> var x; x = <?php echo $valueofX; ?>; </script> HTH ---- ramil http://ramil.sagum.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php