Updated new models with santizeInput function to reduce clutter

This commit is contained in:
johnnyq
2023-02-16 14:54:49 -05:00
parent dc80894dd9
commit 56e0c7d30b
14 changed files with 61 additions and 61 deletions

View File

@@ -1,4 +1,4 @@
<?php
$date = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['date'])));
$date = sanitizeInput($_POST['date']);
$category = intval($_POST['category']);
$scope = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['scope'])));
$scope = sanitizeInput($_POST['scope']);