Location: PHPKode > projects > Shell Providers Customer/Accounts DB > shelldb/process/port_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 Scrportt To Add Users to the database */

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

mysql_select_db ($shelldb_db);

$insert = mysql_query ("UPDATE ports SET port_num = '$port_num', acc_id = '$acc_id'
						WHERE port_id = '$port_id'
			           ");

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

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

Return current item: Shell Providers Customer/Accounts DB