Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

php code to remind of important dates

Posted on 2011-09-12
1
324 Views
Last Modified: 2013-11-13
Hi,

I was wondering where would i start about finding php that reminded me via a web page of dates? i have seen them on socail networking sites, does anybody know where i would start?

Thank you so much
0
Comment
Question by:jonathanduane2010
1 Comment
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 36526349
Start by learning about how PHP and MySQL work together to handle DATETIME values.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html

The next thing you might do is get this little book and work through the examples.   They do not have exactly what you want, but you will need some standard programming ideas, and SitePoint is very good at providing those in clear explanations.
http://www.sitepoint.com/books/phpmysql4/

The general design pattern you would follow would be to have a MySQL table with two columns.  One would be a DATETIME column and one would be a VARCHAR column.  You would have a table-maintenance script that would allow you to add the dates and the reminders.  Your PHP-driven web page would get the current date, turn it into an ISO-8601 string and query the data base for anything that was greater than the current date value.  It might display the next three reminders, for example.  To do that you would use LIMIT 3 in your query.

HTH, ~Ray
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question