Relative Content

Tag Archive for phpsqlite

How do I search a column and return the entire 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>’; } } } } I am creating an error log that a user can search through. The database […]

Error 500: Server Error Request Too Large

I am using php desktop chrome with sqlite for a pos system using php javascript and html. but when i want to print items above 40 entries, i get this error: Error 500: Server Error
Request Too Large. how do i fix it