session_start();
header("Cache-control: private"); //IE 6 Fix
$_SESSION['McMember_SpecialTitle'] = "Edit Unit";
// Gets rid of all the error reporting on servers which are not configured appropriately.
error_reporting(E_ALL ^ E_NOTICE);
// Get the PHP file containing the DbConnector class
require_once('../DbConnector.php');
// Create an instance of DbConnector
$connector = new DbConnector();
$theOrgId = $_SESSION['McMember_OrgId'];
$theMemId = $_SESSION['McMember_MemId'];
$thehiddenSubmitter = $_POST['hiddensubmitter'];
$theUnitId = $_POST['UnitId'];
If ($thehiddenSubmitter == "pookachoo"){
$qVals100 = "UPDATE unit_mems SET Deleted=1,DeletedDate=CURDATE() WHERE UnitId=".$theUnitId;
$qVals = "UPDATE unit SET Deleted=1,DeletedDate=CURDATE(),DeletedBy=".$theMemId." WHERE UnitId=".$theUnitId;
$result100 = $connector->query("$qVals100");
$result = $connector->query("$qVals");
echo '';
}
?>
if(isset($_GET['ID'])){
$theUnitId = $_GET['ID'];
}
$FieldNames = "Name,HouseNumber,BlockName,Address1,Address2,City,State,Zip,Country,";
$FieldNames = $FieldNames."Phone1,Phone1Type,Phone1AC,Phone1P,Phone1S,";
$FieldNames = $FieldNames."Phone2,Phone2Type,Phone2AC,Phone2P,Phone2S,";
$FieldNames = $FieldNames."Email,CreateDate,CreatedBy,OrgId";
$qVals = "SELECT * FROM unit WHERE UnitId=".$theUnitId;
$result = $connector->query("$qVals");
$row = mysql_fetch_array($result);
?>
?>