$value) $GLOBALS[$key] = $value; } elseif (isset($_REQUEST)) { foreach($_REQUEST as $key => $value) { $GLOBALS[$key] = $value; } } connect_to_database(); $item = $dbh->prepare("SELECT * FROM Item WHERE ItemID = :itemid"); $item->bindColumn("IsMemberSubmitted", $ismembersubmitted); $item->bindColumn("Type", $type); $item->bindColumn("IsDeleted", $isdeleted); $item->bindParam(":itemid", $itemid); if (!$item->execute()) { echo "

Error performing query:

";
	print_r ($item->errorInfo());
	$item->debugDumpParams();
	exit();
}
	
if	($item->fetch() && ($type == "Zillions")) {
	if ($isdeleted)
		include "{$ROOT}/404.php";
	if ($ismembersubmitted)
		include "{$ROOT}/index/msdisplay.php";
	else
		include "{$ROOT}/index/zillions.php";
}
else {
	$itemid = "MZ" . $itemid;
	if ($item->execute() && $item->fetch()) {
		if (($type != "Zillions") || $isdeleted)
			include "{$ROOT}/404.php";
		elseif ($ismembersubmitted)
			include "{$ROOT}/index/msdisplay.php";
		else
			include "{$ROOT}/404.php";
	}
}
?>