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

Home » FUDforum Development » Plugins and Code Hacks » Birthday hack
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Birthday hack [message #4408 is a reply to message #4352] Fri, 26 July 2002 01:01 Go to previous messageGo to previous message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma:
Senior Member
something along these lines would get you going in the right direction:


<?php

$db = mysql_connect(<database server>, <username>, <password>);
mysql_select_db(<forum database>, $db);

$result = mysql_query("SELECT * FROM <formum prefix>_users WHERE bday=" . date("Ymd"), $db);
$row = mysql_fetch_array($result, MYSQL_NUM);

echo $row[3] . " is celebrating his/her birthday today.";

?>



this code will not quite work (only gets one person) but it at least gets you started.

*edit* actually you will have to do a regular expression search for birthdays ending with "md" i believe. so that above code doesnt even return one hit.

[Updated on: Fri, 26 July 2002 02:23]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Default font size changes
Next Topic: chinese search
Goto Forum:
  

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

Current Time: Sat Nov 23 07:32:04 GMT 2024

Total time taken to generate the page: 0.05244 seconds