Solved

php code to remind of important dates

Posted on 2011-09-12
1
332 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
[X]
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
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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
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 fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

691 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