| Current Path : /home/bolconlineco/www/aaaaaa/demo/admin/ |
| Current File : /home/bolconlineco/www/aaaaaa/demo/admin/deletecoordinator.php |
<?php
include('../includes/connection/func.inc.php');
if(isset($_GET['PCID']))
{
$id=sql_strip($_GET['PCID']);
$query1="select email from programe_co where PCId='$id'";
$result1=mysql_query($query1) or die(mysql_error());
$row=mysql_fetch_array($result1);
$email=$row['email'];
$query2="delete from admin where username='$email'";
mysql_query($query2) or die(mysql_error());
$query="delete from programe_co where PCId='$id'";
$result=mysql_query($query) or die(mysql_error());
$msg="Deleted Successfully";
header("location:programecoordinator.php?msg=$msg");
exit();
}
?>