FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Get day and month part from date
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Get day and month part from date [message #174733 is a reply to message #174732] Thu, 30 June 2011 12:13 Go to previous messageGo to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
On 6/30/2011 7:16 AM, Jerry Stuckle wrote:
> On 6/30/2011 4:21 AM, Co wrote:
>> Hi All,
>>
>> I would like to retrieve people's birthday from the database.
>> But only those who celebrate the coming week.
>>
>> SELECT * FROM members WHERE birthday BETWEEN $today AND $today+7
>>
>>
>> The birthday field holds also the year but I just need day and month.
>> Is there a way to do this?
>>
>> Marco
>
> Like I told you yesterday - this is not a PHP question. Try an
> appropriate newsgroup, such as comp.databases.mysql.
>
> Ask in the right place and you'll get a good answer.

The best help for forming the query is indeed in the mysql newsgroup.
Insofar as incorporating the query into your PHP code,
http://www.php.net/manual/en/ref.mysql.php may be helpful. The related
pages have many query examples that may be useful to you.

Bill B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: barcode reader integration in web application
Next Topic: show events in calendar
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 10:56:34 GMT 2024

Total time taken to generate the page: 0.07292 seconds