</li> <li class="dropdown"> <a href="#" class="glyphicon glyphicon-book dropdown-toggle" data-toggle="dropdown"> TUTORIAL <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="tutorial.php" class="fa fa-search"> Data TUTORIAL</a></li> <li><a href="tambah_tutorial.php" class="fa fa-plus-square"> Tambah TUTORIAL</a></li> </ul> </li> <li><a href="profil.php" class="glyphicon glyphicon-bookmark"> PROFIL</a></li> </ul> </div> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <?php $jumlah_confirm = jumlah_confirm($id_user); $result_confirm = query_confim($id_user); ?> <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-download"></i> <span class="label label-success"><?php echo $jumlah_confirm; ?> </span> </a> <ul class="dropdown-menu"> <li class="header"> you have <?php echo $jumlah_confirm; ?> confirm</li>
function jumlah_confirm($id_user) { return mysql_num_rows(query_confim($id_user)); }