SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: adding in MySQL

Hybrid View

  1. #1
    SitePoint Enthusiast webmasts's Avatar
    Join Date
    Apr 2003
    Location
    usa
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    adding in MySQL

    I have a row in mysql called 'totalclicks' that is for every users. The totalclicks stores the hits for every visitors. I want to SUM up all the hits in the totalclicks for every user in the database, I mean every user has diffrent hits value. I tried using SUM() but seems not working. Anyone know how it would work?

    Thankx

  2. #2
    if($awake){code();} PHP John's Avatar
    Join Date
    Jul 2002
    Location
    Along the Wasatch Fault line.
    Posts
    1,771
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Post your query string, and tell me if you are trying to get ALL the hits in the database, or just for a specific user?
    John


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •