Project Report of Electricity Billing System Page - 107 function delete_user()
{
$SQL="SELECT * FROM user WHERE user_id = $_REQUEST[user_id]";
$rs=mysql_query($SQL);
$data=mysql_fetch_assoc($rs);
/////////Delete the record//////////
$SQL="DELETE FROM user WHERE user_id = $_REQUEST[user_id]";
mysql_query($SQL) or die(mysql_error());
//////////Delete the image///////////
if($data[user_image])
{
unlink("../uploads/".$data[user_image]);
}
header("Location:../user-report.php?msg=Deleted Successfully.&type=$data[user_level_id]");
Project Report of Electricity Billing System Page - 108 }
?>
Project Report of Electricity Billing System Page - 109 Coding for Bill.php include_once("includes/header.php");
if($_REQUEST[bill_id])
{
$SQL="SELECT * FROM `bill` WHERE bill_id = $_REQUEST[bill_id]";
$rs=mysql_query($SQL) or die(mysql_error());
$data=mysql_fetch_assoc($rs);
}
?>
Project Report of Electricity Billing System Page - 110