Menu

#2 Add Hit count back to article.php3

NEXT RELEASE
closed-fixed
5
2000-09-03
2000-09-01
Anonymous
No

Interim addition to article.php3. The hit count was not being incremented on each view.

265a266,273
> /* increment the hit counter */
>
> $q = "UPDATE psl_story
> SET hits = hits + 1
> WHERE story_id = $story_id";
>
> $sl_q->query($q);
>

Discussion

  • nathan hruby

    nathan hruby - 2000-09-02
    • assigned_to: nobody --> nhruby
     
  • nathan hruby

    nathan hruby - 2000-09-02

    Do you mean the logging mod?

     
  • Ajay Sharma

    Ajay Sharma - 2000-09-02
    • status: open --> open-fixed
     
  • Ajay Sharma

    Ajay Sharma - 2000-09-02

    patched in, but I'm leaving this bug open because we shouuld really make a variable. I personally don't want to run an update everytime an article is loaded.

     
  • Ajay Sharma

    Ajay Sharma - 2000-09-03

    closing bug because I added a variable called 'updatearticlehits' which article.php3 now checks before updating the table.

     
  • Ajay Sharma

    Ajay Sharma - 2000-09-03
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.