Your IP : 10.1.73.149


Current Path : /home/bolconlineco/public_html/aaaaaa/tutor/
Upload File :
Current File : /home/bolconlineco/public_html/aaaaaa/tutor/viewStudent.php

<?php 
  ob_start();
  session_start();
  ?>
<?php include('header.php'); ?>
<?php
if(!isset($_SESSION['tutor']) || $_SESSION['tutorrole'] != 3)
 {
	header("location:../index.php");
	exit(); 
 }
?>      
             <div id="content">
             	<span class="left"> </span><h2> Tutor Site Panel </h2><span class="right"></span>
	<div id="frm">
  
					
					
</div>
                      
                <div id="data">
                <?php
				 		$SId=$_GET['rollno'];
					   
					    $result=mysql_query("select * from student where rollno='$SId'");
						
						if(mysql_num_rows($result)>0)
						 {

				
				?>
               <table width="100%" border="0" cellspacing="0" cellpadding="0">                
						<tr id="title">
                        <th class="small-xx">Student Id</th>
						<th class="small">Name</th>
						
						<th class="small">Phone</th>
						<th class="small">Email</th>							
						<th class="small">Country</th>
                            
						<th class="small">status</th>
						</tr><!-- end title -->	
                       																											
                       <?php
					   
						while($row=mysql_fetch_array($result))
						 {
							 extract($row);
					   ?>
						 <tr class="values even">
                         <td class="small-xx"><?php echo $rollno; ?></td>
							<td class="small"><?php echo $title." ".$fname." ".$lname;?></td>

							<td class="small"><?php echo $mobile; ?></td>
							<td class="small"><?php echo $email; ?></td>							
							<td class="small"><?php echo $country; ?></td>
                            <td class="small"><?php  if($studentstatus==1)
							   {
								 echo "Active";   
							   }
							   else
							   {
								 echo "InActive";   
							   }
							 ?></td>
							
                            </tr><!-- end values -->
                            <?php
						 }
						 }
							?>
						

				</table>																							
				</div><!-- end data -->
                                                   
           </div> <!-- end content  -->
          
        </div><!-- end wrapper -->   


  <?php include('../includes/footer.php');?>