![]() |
Birthdays in Current Month vb 4.2
I am trying to display the user birthdays this month in vbulletin 4.2
I have done the script below, although there is a birthday set this month it shows " No Birthdays This Month " Can anyone help please Code:
<?php |
Shouldn't the section containing
Code:
$userid = $user['userid'];Code:
$userid = $row['userid']; |
Quote:
|
What did you try, please post, because there are at lest three of them. And to save time echo out what you get for $birthday, $birthmonth, and $month.
|
What is the datatype of the birthday field? Is it a datetime (or any derivative of date and time)?
PHP Code:
|
Fou-Lu I got yours to work with a few adjustments, Thanks
ie: it was "birthday_search" not "birthday" My Bad :) Next Question: How would I add the actual date after each name ... It now shows as follows name name name Code:
if ($result = mysql_query("SELECT userid,username,birthday_search FROM user WHERE MONTH(birthday_search) = MONTH(NOW())")) |
PHP Code:
|
Cheers Mate that works perfect :thumbsup:
Quote:
|
| All times are GMT +1. The time now is 10:58 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.