RE: [PHP] Creating a javascript array from database data

2001-08-16 Thread Tim Ward
Freeman [SMTP:[EMAIL PROTECTED]] Sent: 15 August 2001 18:10 To: Sheridan Saint-Michel Cc: php-general Subject: Re: [PHP] Creating a javascript array from database data Thanks a lot for your help Sheridan, This now appears to work ok :) but if I

Re: [PHP] Creating a javascript array from database data (Off-List)

2001-08-16 Thread Neil Freeman
Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Neil Freeman [EMAIL PROTECTED] To: Sheridan Saint-Michel [EMAIL PROTECTED] Cc: php-general [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 12:09 PM Subject: Re: [PHP] Creating a javascript array

Re: [PHP] Creating a javascript array from database data

2001-08-16 Thread Neil Freeman
: Re: [PHP] Creating a javascript array from database data Thanks a lot for your help Sheridan, This now appears to work ok :) but if I remove the: print \$text\; line (as it is not required), I receive errors complaining about a syntax error (related

RE: [PHP] Creating a javascript array from database data

2001-08-15 Thread Jon Farmer
-- while you are looping through the date jump in and out of php like this to populate the javascript array script language=Javascript function DataArray() { a = new Array() ? while ($i $number) { $text = mysql_result($result, $i, name); ?

Re: [PHP] Creating a javascript array from database data

2001-08-15 Thread Sheridan Saint-Michel
The thing to ALWAYS remember when working with both PHP and JavaScript is that PHP is Server-Side and JavaScript is Client-Side. What this mean is practical terms is that when going from JavaScript to PHP you have to submit or redirect back to the server... and when going from PHP to JavaScript

Re: [PHP] Creating a javascript array from database data

2001-08-15 Thread Neil Freeman
Thanks a lot for your help Sheridan, This now appears to work ok :) but if I remove the: print \$text\; line (as it is not required), I receive errors complaining about a syntax error (related to what?) and that 'text' is undefined. As this line simply outputs the value to screen why should

Re: [PHP] Creating a javascript array from database data (Off-List)

2001-08-15 Thread Sheridan Saint-Michel
[EMAIL PROTECTED] Cc: php-general [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 12:09 PM Subject: Re: [PHP] Creating a javascript array from database data Thanks a lot for your help Sheridan, This now appears to work ok :) but if I remove the: print \$text\; line (as it is not required