<?php require "mysql.login.php"; require "class.scoring.php"; require "college.register.php"; $s = new scoring(); $c = new college(); $u = new login(); $n = $u->getMaxUsersFromCollege($_POST['cid']); echo "<table>"; echo "<tr><th>Contestants Name</th><th>Phone Number</th><th>Event Name</th></tr>"; $users = $u->getUsersFromCollege($_POST['cid']); for ($j = 0; $j < $n; $j++) { echo "<tr><td>" . $users[$j]['username'] . " </td><td>" . $users[$j]['phone'] . " </td><td>" . $s->getEventNameFromID($users[$j]['e_id']) . "</td> </tr>"; } echo "</table>";
<p id="main-heading">Error Message</p> </div> <div class="main-container"> <div class="content"> <div class='option-container'> <?php require "college.register.php"; require "mysql.login.php"; $c = new college(); $array = $c->getCollegeArray(); $u = new login(); for ($i = 0; $i < $array[0]['max']; $i++) { $n = $u->getMaxUsersFromCollege($array[$i]['c_id']); echo "\n\t\t\t\t\t\t\t<div class='option' style='width:100%; margin:1px;'>\n\t\t\t\t\t\t\t\t<div class='option-header'>\n\t\t\t\t\t\t\t\t\t<a href='http://sygma.sdm.ac.in/admin/college_confirm.php?cid=" . $array[$i]['c_id'] . "'>" . $array[$i]['c_id'] . ") " . $array[$i]['college_name'] . " (" . $n . " Participants)</a>\n\n\t\t\t\t\t\t\t\t</div>"; $users = $u->getUsersFromCollege($array[$i]['c_id']); for ($j = 0; $j < $n; $j++) { echo "<p>" . $users[$j]['username'] . " " . $users[$j]['phone'] . " " . $users[$j]['e_id'] . " </p>"; } echo "</div>"; } ?> </div> </div> <?php if ($_SESSION['permissions'] <= 5) { die; } ?>