
 abomohammad - 2006-10-07 23:18:17
I used (iH2HMenu) to build dynamic menu where bring names of ( SubLink ) from the database .
The coad :
<?
include ("../config.php");  // this file connect with data base
require_once('menu.php'); 
$menu = new iH2HMenu; 
$menu-> files ('style.css','js.js'); 
$menu->setMainLink ('projects');
$select = "Select * from projects order by project_id   ";
$sql_result = mysql_query($select,$connection) or die(mysql_error());
  while ($row = mysql_fetch_array($sql_result))
  {
  $linkme="../projects.php?id=$row[hikl_id]";
  $menu->setSubLink( 'projects', $row[project_name], '$linkme' );
}
$menu->makeDivs(); 
$menu->makelinks();
?>
 
but the problem is :
i want to put this variable ( $linkme ) in the link of SubLink  as  :
 
$menu->setSubLink('projects',$row[project_name],'$linkme' );
 
the link appear :  http://localhost/jameia/projects.php?id=$row[hikl_id]
 
it can't read the $linkme value   ! ! ! ? ? ? 
 
Note : jameia is name of main folder of website.
 
Please help me 
 
Thank you.