Hi Robb. This is exactly what you'll need to do. Something like the following, assuming you're populating an array with user information:
<script type="text/javascript"> <!-- var users = new Array(); <?php $count = 0; while (!$users->EOF)) { echo 'users['.$count.'] = '.$users->fields['username'].chr(10); $count++; $users->MoveNext(); } ?> //--> </script> The users array will now be populated with the usernames returned from your query. Cheers, Pablo -----Original Message----- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 9:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Menu populated based on previous menu I've found some JavaScripts that will do what I require. Here's the question before I get to deeply into hacking the scripts... Can you embed PhP in JavaScript. In other words, the Java requires that arrays be filled. The entries into these arrays need to come from my database which is accessed via PhP. In Java line... new Array() can I embed the PhP... ><?php echo $database['field']; ?> Thanx, -- Robb Kerr Digital IGUANA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php