?> </a></li><br></ul> </div> </div> </div> <div id="graduation" class="tab-pane fade"> <h3>Graduation Groups</h3> <div class="panel panel-default"> <div class="panel-heading">Graduation</div> <div class="panel-body"> <ul> <li><a href="groups.php?g=<?php echo $pid1; ?> &cat=c" class='btn btn-primary btn-lg'><?php $sc = getgraduation($pid1, 'graduation'); echo $sc; ?> </a></li><br></ul> </div> </div> </div> <div id="postgraduation" class="tab-pane fade"> <h3>PG groups</h3> <div class="panel panel-default"> <div class="panel-heading">PG</div> <div class="panel-body"> <ul> <li><a href="groups.php?g=<?php echo $pid1;
<html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php require_once 'include/essential.php'; require_once 'include/db_connect.php'; $g = $_GET['g']; $cat = $_GET['cat']; $school = getschool($g, 'school'); $inter = getinter($g, 'inter'); $graduation = getgraduation($g, 'graduation'); $postgraduation = getpg($g, 'pg'); $shash = getshash($g, 'shash'); $hhash = gethhash($g, 'hhash'); $ghash = getghash($g, 'ghash'); $phash = getphash($g, 'phash'); if ($cat == "a") { $sco = mysql_query("select * from groups where category='{$cat}'"); while ($sco1 = mysql_fetch_array($sco)) { $group = $sco1['groupname']; $hash = $sco1['ghash']; if ($school == $group and $shash == $hash) { header("location:y.php?group={$hash}"); } else { header("location:home.php"); } }