Ajmal Posted November 10, 2009 Report Share Posted November 10, 2009 Can any one help me please?I want to create a calender in whick i store the birthday date and at that date when i open the site a pop up window apear and tell me Happy Birth Day to you. Its very important task for me.Help me, help me plz Thanks in advance. Link to comment Share on other sites More sharing options...
Ingolme Posted November 10, 2009 Report Share Posted November 10, 2009 Well, it all depends on how you've structured your database. How the birthdate is stored and all the rest. $q = mysql_query("SELECT * FROM users WHERE user_id={$logged_in_user} AND birthdate='" . date("m/d") . "'");if(mysql_num_rows($q)) { echo "Happy Birthday";} Link to comment Share on other sites More sharing options...
Ajmal Posted November 10, 2009 Author Report Share Posted November 10, 2009 Well, it all depends on how you've structured your database. How the birthdate is stored and all the rest.$q = mysql_query("SELECT * FROM users WHERE user_id={$logged_in_user} AND birthdate='" . date("m/d") . "'");if(mysql_num_rows($q)) { echo "Happy Birthday";} Thank you very much.I am trying it. then will tell you.Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now