one possible way:
make a page, i.e. viewdoc.cfm, which will:
a) run a query to increment the DOCCOUNT field by one for a
document
based on url/form var (i.e. url.docid) passed to the page
b) get docpath from db
c) cflocate user to actual docpath (or serve up the
requested doc any
other way)
all links to docs in your website should be changed to
something like
viewdoc.cfm?docid=#docid#
--
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com