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,5 +1,5 @@
<?php
$name = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['name'])));
$name = sanitizeInput($_POST['name']);
$type = intval($_POST['type']);
$color = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['color'])));
$icon = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['icon'])));
$color = sanitizeInput($_POST['color']);
$icon = sanitizeInput($_POST['icon']);