Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/webbioexam/biomedical/
Upload File :
Current File : /var/www/html/mmishra/indem/webbioexam/biomedical/summary.php

<?php
include "header.inc";
$tbl = 'tbl_registration';

$id = $_REQUEST["id"];
$no = $_POST["no"];

echo "<center>
<table>
  <tr><td>
	<center><b>Summary Report </b></center><br>
	<table border=1>
		<tr><td><b>State-wise &nbsp;&nbsp;</b></td>
		    <td><b>Category-wise  &nbsp;&nbsp;</b></td>
		    <td><b>Gender-wise &nbsp;&nbsp;</b></td>
		    <td><b>Fee-Deposited &nbsp;&nbsp;</b></td>
		</tr>
		<tr><td valign=top>";
			$total = 0;
			$rs = mysql_query("select state,count(id) no from $tbl where flag='' group by state");
			while ($o = mysql_fetch_object($rs)) {
			        echo " $o->state: $o->no <br> ";
				$total = $total + $o->no;
			}
			echo "<b>Total: $total</b><br>
		    </td><td valign=top>";

			$total = 0;
			$rs = mysql_query("select category,count(id) no from $tbl where flag='' group by category");
			while ($o = mysql_fetch_object($rs)) {
		        	echo " $o->category: $o->no <br> ";
				$total = $total + $o->no;
			}
			echo "<b>Total: $total</b><br>
		    </td><td valign=top>";
			
			$total = 0;
			$rs = mysql_query("select gender,count(id) no from $tbl where flag='' group by gender");
			while ($o = mysql_fetch_object($rs)) {
			        echo " $o->gender: $o->no <br> ";
				$total = $total + $o->no;
			}
			echo "<b>Total: $total</b><br>
		    </td><td valign=top>";
			
			$total = 0;
			$rs = mysql_query("select txntype,count(id) no from $tbl where flag='' group by txntype");
			while ($o = mysql_fetch_object($rs)) {
			        echo " $o->txntype: $o->no <br> ";
				$total = $total + $o->no;
			}
			echo "<b>Total: $total</b><br></td>";

	echo "</tr></table>
  </td><td>
	&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
  </td><td valign=top><br><br><br>";
	
		echo "  <b>1. <a href='pagination.php'>List of Online Received Applications</a></b> <br><br>
			<b>2. <a href='find-edit.php'>Find and Edit Application</a></b> <br><br>
			<b>3. <a href='find-check.php'>Find and Mark Paid Application</a></b> <br><br>
			<b>4. <a href='showentry.php'>List of Candidates for Screening</a></b> <br><br>
			<b>5. <a href='acardindex3.php'>Admit Card (Individual)</a></b> <br><br> 
			<b>6. <a href='page.php'>Admit Card (Group-wise)</a></b> <br><br> 
			<b>7. <a href='remaining.php'>Missing Photographs list</a></b><br><br>
			<b>8. <a href='attendencelist.php'>Attendence Sheet Format</a></b> 
";  

  echo "</td></tr>
</table></center>";

include "footer.inc";
?>