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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.