| Current Path : /home/bolconlineco/public_html/coordinator/ |
| Current File : //home/bolconlineco/public_html/coordinator/get_country.php |
<?php
include('../includes/connection/func.inc.php');
$catId=$_POST['id'];
$query="select * from student where country='$catId'";
$result=mysql_query($query) or die(mysql_error());
if(mysql_num_rows($result) > 0)
{
?>
<p>Total Student:<?php echo mysql_num_rows($result); ?></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr id="title">
<th class="small">Name</th>
<th class="small">Email</th>
<th class="small">Country</th>
<th class="small">status</th>
<th class="small">Action</th>
</tr><!-- end title -->
<?php
while($row=mysql_fetch_array($result))
{
extract($row);
?>
<tr class="values even">
<td class="small"><?php echo $title." ".$fname." ".$lname;?></td>
<td class="small"><?php echo $email; ?></td>
<td class="small"><?php echo $country; ?></td>
<td class="small"><?php if($studentstatus==0)
{
echo "InActive";
}
else if($studentstatus==1)
{
echo "Active";
}else if($studentstatus==2)
{
echo "Cancel";
}else if($studentstatus==3)
{
echo "Suspended";
}
?></td>
<td class="action">
<a href="update_student.php?studentId=<?php echo $SId; ?>"><img src="../images/edit-icon.png" alt="Edit"/></a>
<a href="admin/deletestudent.php?studentId=<?php echo $SId; ?>" onclick="return confirm('Are you sure to delete?')"> <img src="../images/delete-icon.png" alt="Delete" /></a>
</td>
</tr><!-- end values -->
<?php
}
?>
<?php
}
?>
</table>