Php error? Setting my site out of line

Discussion in 'PHP' started by smivers.com, May 18, 2009.

  1. #1
    I have an error, in the right hand column on the homepage it shows total active listings. This number is false its more like 40?

    www.smivers.com/directory

    Could somebody point me in the correct direction as to why this is happening? :D
     
    smivers.com, May 18, 2009 IP
  2. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #2
    what is the sql used to get that number? How does your script come up with that number? If it uses a global var to add to each time it shows a entry. Have you traced the code to see what is wrong? When I add up all the posts it comes to 34. I guess you thinking it is 40 instead?
     
    exodus, May 18, 2009 IP
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    have you considered total of only approved listings? There could be also duplicate ones.
     
    olddocks, May 18, 2009 IP