Code Comments
Programming Forum and web based access to our favorite programming groups.On Wed, 25 Aug 2004 20:18:23 -0400, Chris Payne <chris_payne@planetoxygene.com> 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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.