How to pass array from php to javascrip?thanks! Here is my sample 
code:<?phprequire 
"include/connection.php";//$menu_name=$_GET['menus'];//$menulist= 
array("Peter", "Joe", "Glenn", 
"Cleveland");//reset($menulist);$menulist=array();$q="select name from 
menus";$result=mysql_query($q);while($row=mysql_fetch_array($result)){$name=$row['name'];array_push($menulist,'$name');}?><script
 type="text/javascript">var menu1=new Array().............//I want to copy 
array menulist to menu1,how to program here?I want the menu1 to be the same as 
menulist</script>
 
_________________________________________________________________
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to