Verify your certificate here

Certificate Verification
connect_error) { die("Connection failed: " . $conn->connect_error); } // Get the certificate ID from the form data $certificate_id = $_POST["certificate-id"]; // Prepare SQL statement $sql = "SELECT * FROM certificates WHERE id = '$certificate_id'"; // Execute SQL statement $result = $conn->query($sql); if ($result->num_rows > 0) { echo "Certificate exists in database"; } else { echo "Certificate does not exist in database"; } $conn->close(); ?>