/home/techb158/workloadmatch.com/Manager/core
Edit: /home/techb158/workloadmatch.com/Manager/core/editEventTitle.php (1199B)
prepare($sql);
if ($prepareQuery == false) {
print_r($auth->errorInfo());
die ('Error preparing the query.');
}
$executeQuery = $prepareQuery->execute();
if ($executeQuery == false) {
print_r($prepareQuery->errorInfo());
die ('Error executing the query.');
}
} else if (isset($_POST['title']) && isset($_POST['description']) && isset($_POST['color']) && isset($_POST['id'])){
$id = $_POST['id'];
$title = $_POST['title'];
$description = $_POST['description'];
$color = $_POST['color'];
$sql = "UPDATE events SET title = '$title', description = '$description', color = '$color' WHERE id = $id ";
$prepareQuery = $auth->prepare($sql);
if ($prepareQuery == false) {
print_r($auth->errorInfo());
die ('Error preparing the query.');
}
$executeQuery = $prepareQuery->execute();
if ($executeQuery == false) {
print_r($prepareQuery->errorInfo());
die ('Error executing the query.');
}
}
header('Location: ../index.php');
?>