[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

php code to remind of important dates

Posted on 2011-09-12
1
Medium Priority
?
343 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 111

Accepted Solution

by:
Ray Paseur earned 1000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Introduction to Processes
Suggested Courses
Course of the Month19 days, 1 hour left to enroll

834 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