Php calendar?

Hey,

I have been asked by a friend if there is a way that a customer visting his holiday accomodation website can select dates that they would like to stay and then receive an email or on screen message telling them that the dates are free or not.

I am learning both php and sql but I feel I am gonna need pointing in the right direction. Can anyone help either with on-line tutorials etc or general advice, such as don’t waste your time

cheers

This might help get you started…

http://www.cascade.org.uk/software/php/calendar/index.php

Take a look at the rates and availability function displayed in the top left hand corner of the following page:

http://www.sandgate.co.za/Rates/

This is sort of what I am looking for.