Commit f0ee4923 authored by S.Holzhauer's avatar S.Holzhauer

LATEST KWOK MAGIC FODOO

parent e8b41d81
......@@ -42,30 +42,6 @@ function checkSet($inputFieldsCount, $inputFields) {
return false;
}
// checks if all inputFields variables are not empty
if (checkSet($inputFieldsCount, $inputFields) != FALSE) {
// check if user's submitted activity does not conflict with any already existing
$sql = "SELECT StartTime, EndTime, Activity, Day FROM Leefpatroon WHERE OuderID = '$OuderID'";
$result = $conn->query($sql);
// grabs all rows from the database with the same OuderID as the user
/*
* for next sprint
while ($row = $result->fetch_assoc()) {
// if StartTime is the same as another activity's one on the same day, exit
if ($startTime == $row["StartTime"] && $day == $row["Day"]) {
echo 'Invoer mislukt: er is al een activiteit geregistreerd op dezelfde Begintijd (' . $row["Activity"] . ').</br>';
exit();
// if StartTime is during another activity on the same day, exit
} else if ($row["StartTime"] < $startTime && $row["EndTime"] > $startTime && $day == $row["Day"]) {
echo 'Invoer mislukt: een andere activiteit is al geregistreerd om gemonitord te worden tijdens uw opgegeven Begintijd (' . $row["Activity"] . ').</br>';
exit();
}
}
*/
// check the POST variable activiteit is correct and not empty
if (empty($_POST['activiteit']) == FALSE && sanityCheck($_POST['activiteit'], 'string', 80) != FALSE) {
// checks if the post variable getActivityID is not false
if (empty($_POST['getActivityID']) == FALSE) {
if (checkSet($inputFieldsCount, $inputFields) != FALSE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment