Updated new models with santizeInput function to reduce clutter
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user