0

Hello Friends!!

I need some help here....
i build a website called E-Maintenance, now i need to make a form that user can choose date and the system will insert into database mysql after the user click submit, im searching on the internet and i found this Javascript calender, this is the address http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

Its cool, but i got problem, how can i insert the date to my database? hope someone can help me, i dont know anything about javascript.....

2
Contributors
2
Replies
11
Views
4 Years
Discussion Span
Last Post by Hazuan Nazri
1
CREATE TABLE IF NOT EXISTS `maintenance` (
  `ID` tinyint(3) NOT NULL AUTO_INCREMENT,
  `Username` varchar(32) NOT NULL,
  `Date` date NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

Format the date from the datepicker to the valid data format. Use php's date() function in the controller.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.