'That rack no longer exists.']); exit; } $rack_name = escapeHtml($row['rack_name']); $rack_description = escapeHtml($row['rack_description']); $rack_model = escapeHtml($row['rack_model']); $rack_depth = escapeHtml($row['rack_depth']); $rack_type = escapeHtml($row['rack_type']); $rack_units = intval($row['rack_units']); $rack_units_descending = intval($row['rack_units_descending']); $rack_power_capacity = intval($row['rack_power_capacity']); $rack_photo = escapeHtml($row['rack_photo']); $rack_photo_rear = escapeHtml($row['rack_photo_rear']); $rack_physical_location = escapeHtml($row['rack_physical_location']); $rack_notes = escapeHtml($row['rack_notes']); $rack_location_id = intval($row['rack_location_id']); $client_id = intval($row['rack_client_id']); enforceClientAccess(); // The rack can't shrink below what's mounted in it - the field's minimum says so $rack_highest_used_unit = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT MAX(unit_end_number) FROM rack_units WHERE unit_rack_id = $rack_id"))[0]); ob_start(); ?>