<?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 customers SET cust_name = '$cust_name', cust_phone = '$cust_phone', cust_email = '$cust_email', cust_addr = '$cust_addr', cust_country = '$cust_country', member_id = '$member_id'
WHERE cust_id = '$cust_id'
");
if(!$insert)
{
echo "There was a error", mysql_error();
exit;
}
echo "The Customers ID Number is:-";
echo $cust_id;
echo '<A href="/index.php">Edit of Customer Successfull Click Here</A>';
?>