Location: PHPKode > projects > Shell Providers Customer/Accounts DB > shelldb/process/cust_del.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 Delete Users to the database */

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

mysql_select_db ($shelldb_db);

$delete = mysql_query ("DELETE FROM customers
						WHERE cust_id = '$cust_id'
			           ");

if (mysql_affected_rows() != 1) 
{
	echo "There was a error", mysql_error();
	exit;
}

echo "The Customers ID Number is:-";
echo "$cust_id";
echo '<A href="/index.php">Deletion of Customer Successfull Click Here</A>';


?>
Return current item: Shell Providers Customer/Accounts DB