hello my friends i have posted this article before but it stil didn't work so so i tried many time different way but i dont see the reason why my menu is not working.
in my main page template.php
here is the content
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta charset="utf-8"/>
<link href='http://fonts.googleapis.com/css?family=Roboto:500,400' rel='stylesheet' type='text/css'>
<script src="js/jquery-1.11.3.min.js"></script>
<link href="header/header.css" rel="stylesheet" type="text/css">
<link href="header/menuresponsive.css" rel="stylesheet" type="text/css">
<link href="style/bodystyle.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"/>
<script type="text/javascriipt" src="header/fonctionmenu.js"></script>
</head>
<body>
<div class="site-container">
<div class="site-pusher">
<?php include('../header/header.php'); ?> // i also tried include("../header/header.php")
<div class="site-content">
<div class="container">
<!-- site content -->
<h1>Lorem ipsum dolor sit</h1>
<p>n. </p>
</div>
<div class="sidebar1">
<p> sidebar1 </p>
</div>
</div>
<div class="site-cache" id="site-cache">
</div>
</div>
</body>
</html>
and here is my header.php
<?php require_once('../Connections/agdb.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$maxRows_principmenu = 10;
$pageNum_principmenu = 0;
if (isset($_GET['pageNum_principmenu'])) {
$pageNum_principmenu = $_GET['pageNum_principmenu'];
}
$startRow_principmenu = $pageNum_principmenu * $maxRows_principmenu;
mysql_select_db($database_agdb, $agdb);
$query_principmenu = "SELECT * FROM apcategorie ORDER BY id ASC";
$query_limit_principmenu = sprintf("%s LIMIT %d, %d", $query_principmenu, $startRow_principmenu, $maxRows_principmenu);
$principmenu = mysql_query($query_limit_principmenu, $agdb) or die(mysql_error());
$row_principmenu = mysql_fetch_assoc($principmenu);
if (isset($_GET['totalRows_principmenu'])) {
$totalRows_principmenu = $_GET['totalRows_principmenu'];
} else {
$all_principmenu = mysql_query($query_principmenu);
$totalRows_principmenu = mysql_num_rows($all_principmenu);
}
$totalPages_principmenu = ceil($totalRows_principmenu/$maxRows_principmenu)-1;
?>
<header class="header">
<a href="#" class="header__icon" id="header__icon" onClick="fonctionmrnu.js"></a>
<nav class="menu">
<?php do { ?>
<a href="#"><?php echo $row_principmenu['categorie']; ?></a>
<?php } while ($row_principmenu = mysql_fetch_assoc($principmenu)); ?>
</nav>
</header>
<?php
mysql_free_result($principmenu);
?>