prepare("SELECT * FROM certificates WHERE certificate_id = ?"); $stmt->execute([$certificate_id]); $cert = $stmt->fetch(PDO::FETCH_ASSOC); if (!$cert) { echo "Certificate Not Found"; exit; } ?>
Student: = htmlspecialchars($cert['student_name']) ?>
Course: = htmlspecialchars($cert['course']) ?>
Date: = htmlspecialchars($cert['issued_on']) ?>