Re: [PHP-DB] PHP Array to Javascript?
On Wed, 25 Aug 2004 20:18:23 -0400, Chris Payne [EMAIL PROTECTED] 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
Re: [PHP-DB] PHP Array to Javascript?
look at the PEAR HTML_Javascript class _ - Original Message - From: Chris Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 26, 2004 2:18 AM Subject: [PHP-DB] PHP Array to Javascript? 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