0); // The '@' character suppresses errors } catch(Exception $e) { $exists = false; } } break; case SQLITE: global $sqlite_db_connection; $query = "SELECT first_name, last_name FROM users WHERE user_id = $id;"; try { $results = $sqlite_db_connection->query($query); $row = $results->fetchArray(); $exists = $row !== false; } catch(Exception $e) { $exists = false; } break; } if ($exists) { // Feedback for end user $html .= '
User ID exists in the database.
'; } else { // Feedback for end user $html .= '
User ID is MISSING from the database.
'; } } ?>