stuck with creating rent table
Posted
by
From.ME.to.YOU
on Stack Overflow
See other posts from Stack Overflow
or by From.ME.to.YOU
Published on 2011-03-18T22:02:51Z
Indexed on
2011/03/19
0:10 UTC
Read the original article
Hit count: 111
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 ?
© Stack Overflow or respective owner