To begin with, I currently have code that looks like this in the view:
<input type="text" class="datepicker" name="start1"> <input type="text" class="datepicker" name="end1">
I am using this to get the start and end date for how long a person will be staying in a hotel. Currently, for example, if a person chooses May 16, 2014 as the start date and May 24, 2014 as the end date, it is being stored in the database as one row as such:
'Name of Person' 'Room Number' 'Start Date' 'End Date'
So for the previous example, it would be stored as:
John Doe 100 5/16/2014 5/24/2014
Instead of this however, I want each row to represent a date as such:
John Doe 100 5/16/2014
John Doe 100 5/17/2014
John Doe 100 5/18/2014
and so on and so forth until 5/24/2014.
My question is this, how can I parse the data so that I can store the data as such?