newbie help: incrementing a date variable into a db

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
ruud
Forum Newbie
Posts: 16
Joined: Mon Oct 27, 2003 9:57 am

newbie help: incrementing a date variable into a db

Post 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
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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]
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Cross post -> viewtopic.php?t=14223

Mac
Locked