Jump to content

Make Dynamic Calender


Ajmal
 Share

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...