In my nuke_users table, I have been gathering birthdates. It's sitting in field "birth" as a date 0000-00-00 (YYYY-MM-DD)
I would like to write a block, which will show which users have a birthday today. Although I am a NEWBIE to sql statements I've finally figured out how to write a statement to get users who have a birthday equal to todays month and date.
Code:
SELECT username
FROM nuke_users
WHERE month( current_date ) = month( birth )
AND dayofmonth( current_date ) = dayofmonth( birth )
I'm proud of writing this! (sooooooo new at any sort of coding)
But I don't know how to turn it into a block to show these users!. Please help. THANKS SOOOOOOOOOOOO MUCH.
TFX_NateDog Corporal
Joined: Jun 16, 2005
Posts: 65
Posted:
Sat Jun 25, 2005 11:00 pm
if you are using PHP then just go into the admin panel and select blocks and add it in there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum