Search specific DB column for user input value. If found, return the contents of the entire corresponding row
if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) { $text = htmlspecialchars(trim($_POST[‘errortext’])); } $sqlError = “SELECT ERRORSTRING FROM Errors”; $stmtError = $db->query($sqlError); while ($rows = $stmtError->fetchArray(SQLITE3_ASSOC)){ foreach($rows as $row => $val) { if($text != null){ if(str_contains($val, $text)){ echo $val . ‘<br>’; } } } } This is some of the code, basically I am creating a functional error log […]