Calendar Date Picker using Dreamweaver to insert into MySQL

I have built a small communication portal using dreamweaver and php/mysql.  I am looking for a good way for the user to submit date information to the DB, in a user friendly way by selecting the dates on a calendar.  I have found several calendars that would do the job, but would like to find a tutorial or direction that helps explain how to install and work with Dreamweaver's PHP output code which can be a bit confusing.  any suggestions?
LVL 2
axessJoshAsked:
Who is Participating?
 
Jason C. LevineConnect With a Mentor No oneCommented:
Hi axessJosh,

Apples and oranges.  Dreamweaver only cares about the data submitted via the form, so any datepicker will work with the behavior.  The only thing you need to do is make sure the datepicker can be configured to write MySQL dates after a day is selected: YYYY-MM-DD

I tend to use the JQuery UI datepicker for this:

http://jqueryui.com/demos/datepicker/
0
 
axessJoshAuthor Commented:
Have you found a datepicker that works with Dreamweaver's update form wizard easily?  I am just concerned about getting in and messing up the extra PHP code that Dreamweaver adds.
0
 
Jason C. LevineNo oneCommented:
Yes, I linked to it above.

You're overthinking this.  As long as the datepicker can be configured to write YYYY-MM-DD it will work.  All DW does is submit that value to the database.

>> messing up the extra PHP code that Dreamweaver adds.

The only "extra" code is the function that scrubs the data to prevent a SQL-injection attack.  So long as you are submitting date values to a MySQL date field, my advice above applies.   If you are submitting date values to a varchar or char field, then you don't even need to worry about the YYYY-MM-DD part...
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
axessJoshAuthor Commented:
Were you able to get jquery working in a testing environment?  I am using Wamp Server on my Localhost but cannot seem to get the Javascript to work for the date picker, even though i can get some open browser window functions to work.
0
 
Jason C. LevineNo oneCommented:
I'm using it in production environments.  As long as you are making the correct calls to the libraries, it shouldn't be a big deal.
0
 
axessJoshAuthor Commented:
Have you seen a way to only enable Sundays to be selected?
0
 
Jason C. LevineNo oneCommented:
You would have to restrict it to only those days.  I would not use a calendar datepicker for this and instead just create a mysql table that holds all possible Sundays as a date column and build a select list using that.
0
 
axessJoshAuthor Commented:
ok, i did that, just wanted to see if there was a simpler way than having to add all the possible Sundays every year.
0
 
Jason C. LevineNo oneCommented:
No.   The more hyperspecific your requirements are, the less likely you will be to find a pre-generated solution.
0
All Courses

From novice to tech pro — start learning today.