I want the user to choose two dates(from/to).

Then I want to select all posts in a mysql database with a date between these two dates.

Finally I wish to present the resulting data in a pdf-document.

Is this possible?
Where do I start?