BMS Events

Edit Event"; include("includes/menu.php"); ?>
connect_error) { die ("Connection Failed: " . $conn1->connect_error); } $sql1 = "SELECT * FROM events WHERE event_id='".$varEvent."'"; $result1 = $conn1->query($sql1); if ($result1->num_rows >=1) { while($row1 = $result1->fetch_assoc()) { $unitid=$row1['unit_id']; $starttimedate=$row1['date_time_start']; $desc=$row1['description']; $ongoing=$row1['is_ongoing']; $endtimedate=$row1['date_time_end']; $alertid=$row1['alert_id']; $eventid=$row1['event_id']; } include "includes/classes/select2.class.php"; ?>
Affected unit: connect_error) { die ("Connection Failed: " . $conn1->connect_error); } $sql2 = "SELECT unit_name FROM units WHERE unit_id='".$unitid."'"; $result2 = $conn1->query($sql2); if ($result2->num_rows >0) { while($row2 = $result2->fetch_assoc()) { $unitname=$row2['unit_name']; } } else { echo "Database Error"; } echo $unitname; ?>
Alert: connect_error) { die ("Connection Failed: " . $conn1->connect_error); } $sql3 = "SELECT alert_name FROM alerts WHERE alert_id='".$alertid."'"; $result3 = $conn1->query($sql3); if ($result3->num_rows >0) { while($row3 = $result3->fetch_assoc()) { $alertname=$row3['alert_name']; } } else { echo "Database Error"; } echo $alertname; $conn1->close(); ?>
Start date and time:
Issue Description:
Update:
Currently Ongoing? '; ?>
End date and time:
You must press "Submit" to record the update!
Go back'; } ?>