<div class="header_top"> <div class="wrap"> <div class="logo" style="float: left;"> <a href="index.php"><h1><span class="black">الحصري</span> <span class="red">للاثاث</span></h1></a> </div> <div class="logo" style="float: right;"> <img style="height:90px;width:250px" src="images/logo.png"> </div> <div class="menu" style="float: left;position: relative;margin-top: 3%"> <ul> <li style="direction: rtl"><a href="index.php">الرئيسيه</a></li> <?php $departement = new departement(); $result = $departement->getAllDepartemnt($con); while ($all = mysqli_fetch_array($result)) { // var_dump($all); ?> <li <?php if (isset($_GET['depart']) && $_GET['depart'] != '') { if ($all['depart_id'] == $_GET['depart']) { echo 'class="active"'; } } ?> > <a href="gallery.php?depart=<?php echo $all['depart_id']; ?>