Counting downloads

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16783
interpreted = N
texte = I'm setting up a mechanism whereby visitors with the right name and password can download files from a directory. As they will have a set number of downloads available to them, I would like their record in the database to be decremented by one each time they download a file, but I have no way of knowing if the download was successful. Is there a way to wait until they have completed the download before I trip the counter in the database? Or is there perhaps a better way to handle it?-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873-4839 * WWW: http://www.altimac.com * ************************************************************** Associated Messages, from the most recent to the oldest:

    
  1. Counting downloads (Gil Poulsen 1998)
I'm setting up a mechanism whereby visitors with the right name and password can download files from a directory. As they will have a set number of downloads available to them, I would like their record in the database to be decremented by one each time they download a file, but I have no way of knowing if the download was successful. Is there a way to wait until they have completed the download before I trip the counter in the database? Or is there perhaps a better way to handle it?-- Gil Poulsen, Webmaster************************************************************** * AltiM@c * Phone: (732) 469-2567 * * 429 St. Giles Court * FAX: (732) 469-5823 * * Somerset, NJ * e-mail: help@altimac.com * * 08873-4839 * WWW: http://www.altimac.com * ************************************************************** Gil Poulsen

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

MySQL (2003) 'does not contain' operator needed ... (1997) Removing [showif] makes a big difference in speed (1997) WebDelivery Text (1998) [shownext] (1999) A question on sub-categories (1997) [browsername] (2001) Execute Applescript (1997) [showif] and equality (1998) Running 2 two WebCatalog.acgi's (1996) carriage returns in data (1997) Nesting [RAW] (1998) Tracking (2004) PCS Emailer's role ? (1997) If Empty ? (1997) Thanks and Big News!!! (1997) Getting the width and height of gif files (2000) Plugin or CGI or both (1997) emailer on Windows Beta 18 (1997) The beginning (1997)