PDA

View Full Version : Birthday Script



.:.:jjm261:.:.
07-09-2008, 04:02 PM
I'm wanting to make a script like one what you can get for VB, how it shows who's birthday it is today, im guessing that theres a way to do it because theres one on habboremix, i'm having a rough guess at it and im thinking that it would be something like

SELECT * FROM Members WHERE birthday = '$birthday'

but im wondering how to match up todays date with the date included

L?KE
08-09-2008, 04:07 PM
When you take their birthday put it into the database as

00 Month, so two digits for the day and then the month. Then to show who's birthday it is do this:




$date = date('dS F');
$query = mysql_query("SELECT * FROM `users` WHERE `birthday`='" . $date . "'");

while($fetch = mysql_fetch_array($query)) {

echo("It's " . $fetch['name'] . "'s birthday today!<br />");

}

echo("L?KE is fit");

Something along those lines?

.:.:jjm261:.:.
08-09-2008, 04:44 PM
tyvm :]

+rep

L?KE
09-09-2008, 03:09 PM
S'alright :)

Want to hide these adverts? Register an account for free!