Location: PHPKode > projects > Helpdesk Over Web > how/sysmgmt/settingsupdate.php
<?php

// Updates system configuration settings.

// Include Configuration File
require_once ('../includes/config.inc'); 

// Set the page title and include the HTML header.
$page_title = 'Helpdesk Over Web - System Configuration Update';
include ('../includes/header.html');

// Connect to Database
require_once ('../includes/mysql_connect.php');
	
echo ("<H1>System Configuration</H1>");
echo ("<H3>Settings Update</H3>");
$orgname = $_POST['orgname'];
$defaultcallseverity = $_POST['defaultcallseverity'];
$helpdesktel = $_POST['helpdesktel'];
$helpdeskemail = $_POST['helpdeskemail'];

$sql = "UPDATE sysconfig SET OrgName='$orgname', helpdeskemail='$helpdeskemail', helpdesktel='$helpdesktel', defaultcallseverity='$defaultcallseverity';";
$result = mysql_query($sql)
   or die("Invalid query: " . mysql_error());
echo ("<P>System settings successfully updated.");  
echo ("<H4>[ <A HREF='config.php'>System Configuration Options</A> ]</H4>");

// Include standard HTML footer
include ('../includes/footer.html');
?>
Return current item: Helpdesk Over Web