Location: PHPKode > projects > Shell Providers Customer/Accounts DB > shelldb/process/acc_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;
}

?>
<? 

/* Process Script To Add Users to the database */

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

mysql_select_db ($shelldb_db);

$insert = mysql_query ("UPDATE accounts SET acc_type = '$acc_type', acc_quota = '$acc_quota', acc_process = '$acc_process', acc_machine = '$acc_machine', acc_login = '$acc_login', cust_id = '$cust_id'
						WHERE acc_id = '$acc_id'
			           ");

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

echo "The Account ID Number is:-";
echo $acc_id;
echo '<A href="/index.php">Edit of Account Successfull Click Here</A>';
?>

Return current item: Shell Providers Customer/Accounts DB