Ajmal Posted November 10, 2009 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 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 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
Archived
This topic is now archived and is closed to further replies.