Jump to content

moret

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

moret's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all, I'm doing a forum, and I have a table field named 'hits'. I want to increment one the value of this field each time a user visits a topic. It seems easy, but when page executes: [code]$result=mysql_query("UPDATE forum_messages SET hits=hits+1 WHERE id='$id");[/code] MySQL increments 2 instead 1, why? Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.