prepare('SELECT c.id, com.title as competition_title, c.certificate_type, c.issued_at FROM certificates c JOIN competitions com ON c.competition_id = com.id WHERE c.user_id = ? ORDER BY c.issued_at DESC'); $stmt->execute([$user_id]); $certificates = $stmt->fetchAll(); ?>
Here is a list of your certificates.
| Competition | Certificate Type | Date Issued | Action |
|---|---|---|---|
| Download | |||
| You have not earned any certificates yet. | |||