Location: PHPKode > projects > Shell Providers Customer/Accounts DB > shelldb/process/bill_edit.php
<?php include("../includes/session.php");?><?php include("../includes/config.php"); ?>
<? 

if(!is_admin()) {
echo '<a href="/login.php">Sorry please login as a administrator</a>';
exit;
}

?><? 

$date_div = "-";
$bill_date = $year . $date_div . $month . $date_div . $day;

/* Process Script To Edit Accounts in the database */

mysql_connect ($shelldb_host, $shelldb_user, $shelldb_pass);

mysql_select_db ($shelldb_db);

$insert = mysql_query ("UPDATE bill SET bill_date = '$bill_date', bill_amount = '$bill_amount', bill_paid = '$bill_paid', acc_id = '$acc_id'
						WHERE bill_id = '$bill_id'
			           ");

if(!$insert) 
{
	echo "There was a error", mysql_error();
	exit;
}

echo "The Bill ID Number is:-";
echo $bill_id;
echo '<A href="/index.php">Edit of Bill Successfull Click Here</A>';
?>
Return current item: Shell Providers Customer/Accounts DB