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
$name = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['name'])));
$type = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['type'])));
$color = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['color'])));
$name = sanitizeInput($_POST['name']);
$type = sanitizeInput($_POST['type']);
$color = sanitizeInput($_POST['color']);