stuck with creating rent table
- by From.ME.to.YOU
i want to create a php with mysql to do the following:
lets say that i have a shop i want to rent, rent will be weekly or monthly. I'm searching for the best way to create this table, so i can do easy queries to calculate free weeks or months.
EDIT
let say i have
ID, START_DATE,RENING_TYPE,CLIENT_ID
where Start_date is the start date for renting, and RENTING_TYPE is weekly or monthly
how should i run a query to know all the empty weeks or month so new clients may reserve that week/month
for example a client reserve July month another client reserve the first week in June, if a new client logged in to my system and want to check all the available weeks/months, how can i achieve that ?