arunpatal Posted April 6, 2014 Share Posted April 6, 2014 Hi, I have two date and title fields <input type="text" name="event_name" placeholder="Starting Date"> <input type="text" name="from" placeholder="Starting Date"> <input type="text" name="till" placeholder="Ending Date"> I have a table call events.... id - auto inc title - varchar(45) date - date __________________________________________________________ now for example starting date is 2014-04-25 and ending date is 2014-05-09 I want to save all these date with their event name to events table.... example id date event 1 2014-04-25 event_name 2 2014-04-26 event_name 3 2014-04-27 event_name 4 2014-04-28 event_name .................................... what would be the way to store???? Link to comment https://forums.phpfreaks.com/topic/287563-saving-date-to-database/ Share on other sites More sharing options...
cyberRobot Posted April 6, 2014 Share Posted April 6, 2014 You could start here: http://www.if-not-true-then-false.com/2009/php-loop-through-dates-from-date-to-date-with-strtotime-function/ Link to comment https://forums.phpfreaks.com/topic/287563-saving-date-to-database/#findComment-1475131 Share on other sites More sharing options...
arunpatal Posted April 6, 2014 Author Share Posted April 6, 2014 You could start here: http://www.if-not-true-then-false.com/2009/php-loop-through-dates-from-date-to-date-with-strtotime-function/ Great example... Thanks Link to comment https://forums.phpfreaks.com/topic/287563-saving-date-to-database/#findComment-1475132 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.