Solved

php code to remind of important dates

Posted on 2011-09-12
1
326 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 110

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

685 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