Project Report of Electricity Billing System
Page - 102
if($_REQUEST[act]=="get_report")
{
get_report();
exit;
}
###Code for save user#####
function save_user()
{
$R=$_REQUEST;
///Checking Username Exits or not ////
$SQL="SELECT * FROM user WHERE user_username = '$_REQUEST[user_username]'";
$rs=mysql_query($SQL);
$data=mysql_fetch_assoc($rs);
if($data['user_username'] && $R['user_id'] != $_SESSION['user_details']['user_id']) {
header("Location:../user.php?msg=Username Already Exits.
Kindly choose
another....");