Announcement

Collapse
No announcement yet.

How to count/store item hits

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to count/store item hits

    Hi all!
    I'm looking for the best way to count item hits and store value in the db.
    Somebody can give me a clue to get this.

    Thanks in advance.

  • #2
    What do you mean? The number of webhits? Most providers have this default (webalizer ie.)
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hi!
      i'm trying to order the grid by item "read times".
      so, the item most popular will be on top of the grid.
      it's possible to do?
      thanks!

      Comment


      • #4
        Ah, then you need to add a count field to the row containing the items. If you select an item in the grid to be read you jump to detail? That's where you need to update this field. (Onload). The count field can be hidden so you can easy increase the value:$sql= 'update mytable set countfield='.{countfield}+1.' where ....
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Ok! thank you very much.
          That is a good solution.
          Thanks again!
          Best!!

          Comment

          Working...
          X