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/pagewise_a.php

<style>
<!--table.background { background: url("images/bg.png") no-repeat center;} -->
table.background { background: url("images/seal.jpg") no-repeat center;}
</style>
<form method="post">
<?php
include "javafunctions.inc";
include "functions.inc";
dbConnect();
//$tbl = 'tbl_registration';
//$tbl = 'tbl_paid_310512_te';
//$tbl = 'tbl_paid_010612_n';
//$tbl = 'tbl_final_alloted';
//$tbl = 'remaining_alloted_1';
//$tbl = 'remaining_alloted_2';
$tbl = 'tbl_final_alloted';

$per_page = 50;
//Calculating No. of pages
$sql = "select * from $tbl where flag != 2";
//$sql = "select * from $tbl where rollno>1048";
//$sql = "select * from $tbl";
$result = mysql_query ($sql);
$count = mysql_num_rows($result);
$pages = ceil($count/$per_page);

echo "<center><b>$per_page Admit Card per page</b><br>";
	for ($i=1; $i<=$pages; $i++) {
	 	echo "<a href='pagewise_b.php?page=$i' target='b'> $i</a>&nbsp;&nbsp;";
	}
	echo "</center>";
if (!$page) $page=1;

if($_GET){
   $page = $_GET['page'];
   if (!$page) $page = 1;
}

?>
</form>