<?php
include('config.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(Background.png);
background-repeat: no-repeat;
}
body,td,th {
font-family: "Segoe UI Light";
color: #000;
font-size: large;
}
</style>
</head>
<body>
<p><br />
</p>
<p> </p>
<p> </p>
<p> </p>
<p><br />
<br />
</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" height="303"> </td>
<td width="62%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="265" valign="top"><h1>
<br />
<?php
$myDate = date('d/m');
$badgesql = mysql_query("SELECT * FROM birthdays.students WHERE `Date` LIKE '%$myDate%'"); // birthdays is the DB, the table is called students - you can change these
$badgecheck = mysql_num_rows($badgesql);
$check = $badgecheck;
if($check==0)
echo('No birthday\'s today!');
else
if($badgecheck!=0)
{
while($badge = mysql_fetch_array($badgesql))
{
echo(''.$badge[Firstname].' '.$badge[Surname].'<br>');
}
}