Update manage_incident.php
This commit is contained in:
@@ -94,10 +94,12 @@ if(isset($_GET["add_todolist"])){
|
|||||||
|
|
||||||
|
|
||||||
$sql_lists = "SELECT id, name FROM todo_lists WHERE belongs_to_incident = ?";
|
$sql_lists = "SELECT id, name FROM todo_lists WHERE belongs_to_incident = ?";
|
||||||
|
$stmt = $conn->prepare($sql_lists);
|
||||||
$incident_id=htmlspecialchars($_GET["incident_id"]);
|
$incident_id=htmlspecialchars($_GET["incident_id"]);
|
||||||
$stmt->bind_param("i", $incident_id);
|
$stmt->bind_param("i", $incident_id);
|
||||||
$incident_id=htmlspecialchars($_GET["incident_id"]);
|
$incident_id=htmlspecialchars($_GET["incident_id"]);
|
||||||
$result_lists = $conn->query($sql_lists);
|
$stmt->execute();
|
||||||
|
$result_lists = $stmt->get_result();
|
||||||
|
|
||||||
if ($result_lists->num_rows > 0) {
|
if ($result_lists->num_rows > 0) {
|
||||||
// Output data of each to-do list
|
// Output data of each to-do list
|
||||||
|
|||||||
Reference in New Issue
Block a user