Welcome to the Legend of mir forums. Mir Revenge.
Results 1 to 6 of 6
  1. #1
    IRCHEATING PWNZ YOU! Array
    Join Date
    Jan 1970
    Location
    Apple Command HQ
    Posts
    8,051

    Default Looking for a little SQL Help.

    Well with FACUPs database viewer as a basis i have managed to get the player rankings created for the low rate. (once finished ill send it to lapta for the high and med rates)

    but what i want to do (and dont have the knowledge of how to) is add the actual rank positions to the list.

    current low rate

    http://92.48.119.31/playerlevels.php

    So we currently have Penny in first place and 2000 in second place i actually want to add another Coloumn that has the 1, 2, 3 and so on. (btw currently it states everyone as rank 1 just as a filler theres no code doing that )

    If anyone has any ideas please let me know ^.^

    thanks

    ....................................
    ....................................................................
    ....................................................................
    ....................................................................
    ..............................................................
    ....................................................................
    ....................................................................
    ....................................................................
    ....................

  2. #2
    Administrator Array
    Join Date
    Aug 2007
    Location
    Blackpool, United Kingdom
    Posts
    11,660

    Default Re: Looking for a little SQL Help.

    rank + 1 i would guess lol

    no idea.
    Email - Admin@miremails.com
    MSN - lapta@hotmail.co.uk (DO NOT SEND EMAILS TO THIS ADDRESS)
    Quote Originally Posted by Soulfoxx View Post
    I have reasonably good MC (36 ish)

  3. #3
    Administrator Array
    Join Date
    Aug 2007
    Location
    Blackpool, United Kingdom
    Posts
    11,660

    Default Re: Looking for a little SQL Help.

    looks good tho.
    Email - Admin@miremails.com
    MSN - lapta@hotmail.co.uk (DO NOT SEND EMAILS TO THIS ADDRESS)
    Quote Originally Posted by Soulfoxx View Post
    I have reasonably good MC (36 ish)

  4. #4
    IRCHEATING PWNZ YOU! Array
    Join Date
    Jan 1970
    Location
    Apple Command HQ
    Posts
    8,051

    Default Re: Looking for a little SQL Help.

    lol the bit i found most annoying! is it classes the field names as case sensitive when defining them but when you use the SELECT * FROM bit it can be upper or lower case.

    ^.^ lol and the MR DB is some what unconsistant in its design.

    anyway ill keep on trying

    ....................................
    ....................................................................
    ....................................................................
    ....................................................................
    ..............................................................
    ....................................................................
    ....................................................................
    ....................................................................
    ....................

  5. #5
    True Mir Revenger Array
    Join Date
    Sep 2008
    Location
    Town called Hypocrisy
    Posts
    1,205

    Default Re: Looking for a little SQL Help.

    Quote Originally Posted by Lone View Post
    lol the bit i found most annoying! is it classes the field names as case sensitive when defining them but when you use the SELECT * FROM bit it can be upper or lower case.

    ^.^ lol and the MR DB is some what unconsistant in its design.

    anyway ill keep on trying
    found this dunno if its of any help

    example we show the ranking, by population of those countries with a population of over 180 million.
    SELECT name,population,
    RANK() OVER (ORDER BY population DESC) AS r
    FROM bbc WHERE population>180000000
    ORDER BY name
    low rate tao lvl 80+
    sc 310+ enhance 2 bracs
    dc 200
    pa 14 slow 13 aspeed 19
    co leader of lr_elite

    extreme
    lvl 120+ tao
    lvl 120+ wiz
    1st leader of Sons_Of_Liberty

  6. #6
    IRCHEATING PWNZ YOU! Array
    Join Date
    Jan 1970
    Location
    Apple Command HQ
    Posts
    8,051

    Default Re: Looking for a little SQL Help.

    hmmm that looks promising (says the Noob without any SQL knowledge )

    after discussions with Hollywood, i think i might need a new table to be designed to solve the problem.



    ^^ just tried with your additional code (almost certianly in the wrong place) but it returned

    Parse error: syntax error, unexpected T_STRING in Playerlevels.php on line 28

    ....................................
    ....................................................................
    ....................................................................
    ....................................................................
    ..............................................................
    ....................................................................
    ....................................................................
    ....................................................................
    ....................


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sql
    By lapta in forum Mir Revenge, General Chat.
    Replies: 9
    Last Post: 19-09-10, 12:47 PM
  2. Sql 2005
    By lapta in forum Mir Revenge - Aug 2007 - May 2010 Archives.
    Replies: 13
    Last Post: 18-09-09, 11:44 AM
  3. Sql
    By kurdlegend in forum Mir Revenge - Aug 2007 - May 2010 Archives.
    Replies: 13
    Last Post: 02-01-09, 08:49 PM
  4. Microsoft SQL 2000
    By imorthefcker in forum Mir Revenge - Aug 2007 - May 2010 Archives.
    Replies: 2
    Last Post: 11-12-08, 02:50 PM
  5. Xp professional and SQL 2000
    By Sephiroth in forum Mir Revenge - Aug 2007 - May 2010 Archives.
    Replies: 6
    Last Post: 26-06-08, 10:48 AM

Tags for this Thread

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85