User Profile

Collapse

Profile Sidebar

Collapse
bfreshour
bfreshour
Last Activity: Mar 13 '10, 03:28 AM
Joined: Feb 28 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bfreshour
    started a topic C ISAPI Code (Redirect)...
    in C

    C ISAPI Code (Redirect)...

    I wrote this ISAPI filter to rewrite the URL because we had some sites that moved locations... Basically the filter looks at the referrer, and if it's the local server, it looks at the requested URL and compared it to the full referrer. If the first path is identical, nothing is done, however if not, it takes the first path from the full referrer and prepends it to the URL. For example: /Content/imgs/img.jpg from a referrer of http://myserver/wr...
    See more | Go to post

  • Hmm... I just got it to work by doing the following...
    Code:
    UPDATE tblplayers a,
    (
    SELECT SUM(COALESCE(costCP, 0)) AS CPCOUNT, forumMemberID
    FROM tblplayers c 
    LEFT OUTER JOIN tblplayerabilities a ON a.playerID = c.forumMemberID
    LEFT OUTER JOIN tbldoctrineabilities b ON a.abilityID = b.abilityID
    GROUP BY CP, forumMemberID
    ) b
    SET a.CP = a.CP + (15 - b.CPCOUNT)
    WHERE a.forumMemberID
    ...
    See more | Go to post
    Last edited by ronverdonk; Feb 28 '08, 10:30 AM. Reason: code tags

    Leave a comment:


  • bfreshour
    started a topic Can someone tell me why this query doesn't work?
    in PHP

    Can someone tell me why this query doesn't work?

    UPDATE tblplayers a,
    (
    SELECT SUM(COALESCE(co stCP, 0)) AS CPCOUNT, forumMemberID
    FROM tblplayers c
    LEFT OUTER JOIN tblplayerabilit ies a ON a.playerID = c.forumMemberID
    LEFT OUTER JOIN tbldoctrineabil ities b ON a.abilityID = b.abilityID
    GROUP BY CP, forumMemberID
    ) b
    SET a.CP = 15 - (b.CPCOUNT+a.CP )
    WHERE a.forumMemberID = b.forumMemberID
    AND (b.CPCOUNT+a.CP ) < 15
    ...
    See more | Go to post
No activity results to display
Show More
Working...