Click here to Skip to main content
16,011,949 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Available Delivery Dates script Pin
E Slipchenko12-Nov-03 16:03
E Slipchenko12-Nov-03 16:03 
GeneralRe: Available Delivery Dates script Pin
l a u r e n12-Nov-03 16:08
l a u r e n12-Nov-03 16:08 
GeneralRe: Available Delivery Dates script Pin
E Slipchenko12-Nov-03 16:23
E Slipchenko12-Nov-03 16:23 
GeneralRe: Available Delivery Dates script Pin
l a u r e n12-Nov-03 16:27
l a u r e n12-Nov-03 16:27 
GeneralRe: Available Delivery Dates script Pin
E Slipchenko12-Nov-03 16:31
E Slipchenko12-Nov-03 16:31 
GeneralRe: Available Delivery Dates script Pin
l a u r e n12-Nov-03 16:34
l a u r e n12-Nov-03 16:34 
GeneralRe: Available Delivery Dates script Pin
E Slipchenko12-Nov-03 16:56
E Slipchenko12-Nov-03 16:56 
GeneralRe: Available Delivery Dates script Pin
l a u r e n12-Nov-03 17:03
l a u r e n12-Nov-03 17:03 
oh shame ... im sorry ur going mad with this
ok heres what i would do

make a table called deliveries
columns (all i can think of right now):
delivery_id (auto-number)
delivery_date (date)
num_booked (int)

then in ur item / order / whatever table add a column
delivery_id (int)

when ur looking for the next free delivery slot search thru the deliveries table for a num_booked less than 200 (make sure its after now() datewise)

set the item delivery_id column to the delivery date id u found and bump the delivery date record num_booked up by 1

when u cancel a delivery for a date bump the num_booked down by one

then u want a section in the cms to add delivery dates and voila!

hope that helps
Smile | :)



"there is no spoon"
biz stuff   about me

GeneralRe: Available Delivery Dates script Pin
E Slipchenko12-Nov-03 18:57
E Slipchenko12-Nov-03 18:57 
GeneralRe: Available Delivery Dates script Pin
Roger Wright12-Nov-03 19:09
professionalRoger Wright12-Nov-03 19:09 
Questionhow to read/write param of an applet at runtime? Pin
davang12-Nov-03 6:13
davang12-Nov-03 6:13 
GeneralSimple HttpServer Pin
Member 29863711-Nov-03 12:28
Member 29863711-Nov-03 12:28 
GeneralRe: Simple HttpServer Pin
Heath Stewart11-Nov-03 13:25
protectorHeath Stewart11-Nov-03 13:25 
GeneralProblem with html attribute width=100% Pin
chubbysilk11-Nov-03 11:07
chubbysilk11-Nov-03 11:07 
GeneralRe: Problem with html attribute width=100% Pin
Heath Stewart11-Nov-03 13:22
protectorHeath Stewart11-Nov-03 13:22 
GeneralRe: Problem with html attribute width=100% Pin
ZoogieZork11-Nov-03 17:43
ZoogieZork11-Nov-03 17:43 
GeneralRe: Problem with html attribute width=100% Pin
Bill Priess12-Nov-03 6:18
Bill Priess12-Nov-03 6:18 
GeneralOpening Document from ASP Pin
SatyaDY10-Nov-03 22:42
SatyaDY10-Nov-03 22:42 
GeneralRe: Opening Document from ASP Pin
Heath Stewart11-Nov-03 13:21
protectorHeath Stewart11-Nov-03 13:21 
GeneralRe: Opening Document from ASP Pin
SatyaDY11-Nov-03 17:43
SatyaDY11-Nov-03 17:43 
GeneralRe: Opening Document from ASP Pin
Heath Stewart11-Nov-03 19:04
protectorHeath Stewart11-Nov-03 19:04 
GeneralRe: Opening Document from ASP Pin
SatyaDY11-Nov-03 21:44
SatyaDY11-Nov-03 21:44 
GeneralRe: Opening Document from ASP Pin
Heath Stewart12-Nov-03 2:31
protectorHeath Stewart12-Nov-03 2:31 
GeneralIE Address bar icon Pin
Tom Archer10-Nov-03 13:08
Tom Archer10-Nov-03 13:08 
GeneralRe: IE Address bar icon Pin
J. Dunlap10-Nov-03 15:40
J. Dunlap10-Nov-03 15:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.