The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Display this birthdays this month
Hi
I am trying to display this months birthdays , I have this so far but displays no birthdays this month.. When I know there are,, can anyone help me... Code:
$file = "connect.php"; if( file_exists( $file ) ) { require $file; $result = mysql_query("SELECT username,birthday FROM user WHERE MONTH(birthday) = MONTH(NOW())"); if( mysql_num_rows( $result ) != 0 ) { while ( $row = mysql_fetch_array($result)) { echo $row['username']; echo "<br />"; echo $row['birthday']; echo "<br />----------<br />"; } }else{ echo "No Birthdays<br />This Month"; } }else{ die("File $file does not exist"); } |
#2
|
||||
|
||||
Have you tried this?
Code:
SELECT username,birthday FROM user WHERE MONTH(birthday) = MONTH(CURDATE()) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|