Alumnilist

[insert_php]
echo ‘

‘;
echo ‘
‘;

include_once(‘config.php’);
$page=$_REQUEST[‘page’];
if(!isset($page)){$page=1;}
$start=($page*25)-24;
$branch=trim($_REQUEST[‘branch’]);
if($branch<>”)
{
$querry=mysql_query(“SELECT * from alumni where branch=’$branch’ order by name”);
}
else
{
$querry=mysql_query(“SELECT * from alumni order by name”);
}
$num=mysql_num_rows($querry);
for ( $i = 0; $i < $start; $i += 1){ $display=mysql_fetch_assoc($querry); } echo ‘

ALUMNI LIST >>

‘;
$pageno=(integer)($num/25);
if(($num%25)>0)
{$pageno++;} for ( $i = 1; $i <= $pageno; $i++){echo ‘‘.$i.’  ‘;}
echo ‘ Page

 

‘;
$c=1; do {
echo ‘
‘;
if($display[’email’]<>”){echo ‘E-MAIL       :’.$display[’email’].’
‘;}
if($display[‘course’]<>”){echo ‘COURSE     :’.$display[‘course’].’
‘;}
if($display[‘branch’]<>”){$b=str_replace(‘_’, ‘ ‘, $display[‘branch’]);echo ‘BRANCH     :’.ucwords($b);}
echo ”;
if($display[‘filename’]<>”){
echo ‘
‘;
}
echo ”.$display[‘name’];
$c++; if($c==26){break;}echo ‘

‘;
}while($display=mysql_fetch_array($querry));
echo ‘
‘;
$pageno=(integer)($num/25);
if(($num%25)>0)
{$pageno++;} for ( $i = 1; $i <= $pageno; $i++){echo ‘‘.$i.’  ‘;}
echo’ Page

‘;
[/insert_php]

Show Buttons
Hide Buttons

Request a Call Back