I am creating a small calendar where a user selects the date and month from a drop down lists. They select a date from and then a date tpo. This then get converted to a string and inserted in to the database. This means we only need to use one field in the database.
Example selected from drop down lists:-
1 January 22 March
$datesrow1 = $date1 . $month1. $date2. $month2;
so $datesrow1 = 1 January 22 March
I want to be able to pull this information back from the database and back in to the drop down lists.
If someone filled in all the drop downs this is fine, I can place these variables back in to the drop down lists in the correct order, However what happens if someone only wants to enter the months instead of the dates like so.
January April
This means they would come back in the wrong order.
I hope you get what I mean.