1) In the server behavior panel click on the plus (+) sign
and select command.
2) Name it whatever you want maybe omething like totalViews
3) Select the connection
4) set the type to UPDATE
Your query will look something like this:
UPDATE bandDetails (your tablename)
SET TotalViews = TotalViews + 1 (your field in the DB for
keeping count of views)
WHERE bandID = ParamBandID
ParamBandID would be request.queryString("bandID")
Thats it, hit OK and everytime a specific band's info is vied
it will be updated in the database.
Each time the page is opened, a scripted routine in the head
of the page
reads in the value of the viewed field, increments it,
assigns that value to
a variable, and writes it back to the database.
Later on the page, you write the value of that variable to
the page.
"rob dalton" <webforumsuser@macromedia.com> wrote in
message
news:erfphv$g87$1@forums.macromedia.com...
> sorry bud i dont follow. how do i get the number of
times the details page
> has been viewed to show up on the details page. if you
can go through it
> with me in a few steps id appreciate it.
i have a colum in my artists table called pageviews i set
this to numeric and set the default value to 0 can i use a bit of
sql to configure it to show how many times each file has been
viewed
"rob dalton" <webforumsuser@macromedia.com> wrote in
message
news:erfo5p$b3n$1@forums.macromedia.com...
>i need to know how many times a page for musicians
details has been viewed
>these details are held in a datbase i dont think its the
same thing as just
>a stat counter is it?
you could use some log analysis software to parse through the
logs for a
particular string, i.e.
www.site.com/people/index.php?recNum=14
sorry bud i dont follow. how do i get the number of times the
details page has been viewed to show up on the details page. if you
can go through it with me in a few steps id appreciate it.
"rob dalton" <webforumsuser@macromedia.com> wrote in
message
news:erfo5p$b3n$1@forums.macromedia.com...
>i need to know how many times a page for musicians
details has been viewed
>these details are held in a datbase i dont think its the
same thing as just
>a stat counter is it?
i need to know how many times a page for musicians details
has been viewed these details are held in a datbase i dont think
its the same thing as just a stat counter is it?
There are a number of free counter scripts out there if you
want a public
display, otherwise your webhost should have a stats that you
can look at.
--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"rob dalton" <webforumsuser@macromedia.com> wrote in
message
news:erfl69$7m8$1@forums.macromedia.com...
> How do i display how many times a file has been viewed