The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am trying to display the user birthdays this month
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 include("connect.php"); $result = mysql_query("SELECT userid,username,birthday FROM user WHERE MONTH(birthday) = MONTH(NOW())"); if( mysql_num_rows( $result ) != 0 ) { while ( $row = mysql_fetch_array($result)) { $userid = $user['userid']; $username = $user['username']; $birthday = $user['birthday']; $birthday = explode("-", $birthday); $birthmonth = $birthday[0]; if ($birthmonth = $month) { echo "<a href='member.php?u=$userid'>$username</a>, "; } } } else{ echo "No Birthdays This Month"; } ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|