Viewing file: website_traffic.php (1.41 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include 'connect.php';
$query = "SELECT COUNT(*) as total FROM admission"; $result = $conn->query($query); $row = $result->fetch_assoc(); $total_students = $row['total']; ?>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Student Dashboard</title> <style> body { font-family: 'Segoe UI', sans-serif; background: #f4f6f8; display: flex; justify-content: center; align-items: center; height: 100vh; }
.card { background: linear-gradient(135deg, #4e73df, #224abe); color: white; width: 350px; padding: 30px; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); text-align: center; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }
.card h1 { font-size: 60px; margin: 0; }
.card p { margin-top: 10px; font-size: 20px; letter-spacing: 1px; }
.icon { font-size: 40px; margin-bottom: 15px; color: #cbd5ff; } </style> </head> <body>
<div class="card"> <div class="icon">🎓</div> <h1><?php echo $total_students; ?></h1> <p>Total Registered Students</p> </div>
</body> </html>
|