Fix No records exist if client_id in the uri is non existent

This commit is contained in:
johnnyq 2025-11-02 13:13:51 -05:00
parent 519975f3cf
commit a85f898ef5
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ if (isset($_GET['client_id'])) {
if (mysqli_num_rows($sql) == 0) {
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.php';
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1></center>";
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1><a class='btn btn-lg btn-secondary mt-3' href='javascript:history.back()'><i class='fa fa-fw fa-arrow-left'></i> Go Back</a></center>";
exit;
} else {
$row = mysqli_fetch_array($sql);