Hi i have this code:
Menu1_1=new Array("Member Listing","admin_database.php","",0,20,109);

How can i make it fetch the data from the column name from the database?
How can i insert <?php echo $row_rs7['name'];?> into it?
I tried on this Menu1_1=<?php echo $row_rs7['name'];?> but it doesn't work.Can anyone guild me?Thanks.

    ok this looks like javaSCRIPT:

    Menu1_1=new Array("Member Listing","admin_database.php","",0,20,109);

    you took out the part that says 'new Array(...'

    you can't do that. try this:

    Menu1_1=new Array("<?=$row_rs7['name'];?>","admin_database.php","",0,20,109);

    IMPORTANT: If your database data contains any double quotes, you might have some problems...you'd have to use <?=addslashes($row_rs7['name']);?> or something

      Write a Reply...