Page 1 of 1

newbie help: incrementing a date variable into a db

Posted: Sun Nov 02, 2003 7:52 am
by ruud
hi there

i'm a bit of a newbie to php. i'm currently trying to develop a booking system for a motorhome. the motorhome can only be booked from friday to friday so the user can select through a drop down only the fridays of a given month to book a starting date (already recieved help from this forum for that prob - so thanks alot :lol: ). i need the starting date in date format to be entered into a table which i've done but i now need the dates for the following 7 days to be entered into individual rows for the same booking- this is where i'm stuck. can anyone help?

thanks in advance

Posted: Sun Nov 02, 2003 6:59 pm
by m3mn0n
Create a linking ID between the 7 items.

Code: Select all

dayID - bookingID - etc - etc
monday - 3 - etc - etc
tues - 3 - etc - etc
Reference material: [mysql_man]date[/mysql_man]

Posted: Mon Nov 03, 2003 3:53 am
by twigletmac
Cross post -> viewtopic.php?t=14223

Mac