Here is my code:
if ($num = $i) {
echo ("<p align='left'>It's everyone's unbirthday today!</p><br>")
}
else {
while ($i < $num) {
[B]$name=[/B]mysql_result[B]($result,$i,[/B]"username"[B]);[/B]
[B]$day=[/B]mysql_result[B]($result,$i,[/B]"bday"[B]);[/B]
[B]$city=[/B]mysql_result[B]($result,$i,[/B]"lpcity"[B]);[/B]
[B]$email=[/B]mysql_result[B]($result,$i,[/B]"emailques"[B]);[/B]
echo "<br>Username: $name<br>Birthday: $day<br>City From: $city<br>On Emailing?: $email<br><br><hr><br>";
$i++;
}
echo("<p align='center'><font face='Arial' size='3' color='#FF0000'>If your information is wrong please email lpbirthdays@johnpedroza.com and we will change it.</font></p>");
echo("<p></p>");
include("adder.html");
echo("<p></p>");
include("footer.html");
?>
What I want it to do is if there is a birthday show it, but if there is not a birthday say "It is everyone's unbirthday!" Should be easy but it isn't working. The while statement by itself is working, in other words I can get it to show me a list of today's birthdays, but if it is a no birthday month it isn't working. Thanks in advance for the help.