Jump to content

'StartTop' problem


teongkia

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/28821-starttop-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.