You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 62 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Help with creating a block [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
alinka
Sergeant
Sergeant


Joined: Jan 20, 2004
Posts: 80


PostPosted: Wed Feb 02, 2005 11:04 am Reply with quoteBack to top

Hi guys,

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.
Find all posts by alinkaView user's profileSend private message
TFX_NateDog
Corporal
Corporal


Joined: Jun 16, 2005
Posts: 65


PostPosted: Sat Jun 25, 2005 11:00 pm Reply with quoteBack to top

if you are using PHP then just go into the admin panel and select blocks and add it in there.

_________________
Image
www.4gamersonline.com
www.clanresources.org
Find all posts by TFX_NateDogView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.157 Seconds - 140 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::