teongkia Posted November 29, 2006 Share Posted November 29, 2006 Hi i have this code:mysql_select_db($database_mConn, $mConn);$query_rs7 = "SELECT * FROM example1 WHERE id='3'";$rs7 = mysql_query($query_rs7, $mConn) or die(mysql_error());$row_rs7 = mysql_fetch_assoc($rs7);$totalRows_rs7 = mysql_num_rows($rs7);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.The error is 'StartTop" is undefined.I just want to set for Menu1_1 where i can change the link page(admin_database.php) from the database itself and do not need to go into code and change it.But i could not get what i wanted..Plz help..Thanks.Can anyone guild me?Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/28821-starttop-problem/ Share on other sites More sharing options...
fenway Posted December 6, 2006 Share Posted December 6, 2006 I'm not sure I understand what's producing this error. Quote Link to comment https://forums.phpfreaks.com/topic/28821-starttop-problem/#findComment-135994 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.