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

2001-08-16 Thread Neil Freeman
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 remove the: > > print "\&q

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

2001-08-16 Thread Neil Freeman
print "\"$text\"";) is > unnecessary > > Hope this helps > > Sheridan Saint-Michel > Website Administrator > FoxJet, an ITW Company > www.foxjet.com > > - Original Message - > From: Neil Freeman <[EMAIL PROTECTED]> > To: Sheri

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

2001-08-16 Thread Tim Ward
- From: Neil 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 appea

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

2001-08-15 Thread Sheridan Saint-Michel
helps Sheridan Saint-Michel 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

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

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 Jon Farmer
-- while you are looping through the date jump in and out of php like this to populate the javascript array