SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2000
    Location
    Bratislava, SLOVAKIA
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello everybody,

    I`d like to ask you for help with the "PHP sort" function. Im managing a database of hockey players and have created a table which can sort and order the players by their Name, games played, goals scored, assists, points, etc.
    It would be great if you could tell me how to get the actual row number, everytime there is a new sort - I need this for the RANKING column.

    Sorry for my english and thanx for your help.

    Juraj Lovas

  2. #2
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    have an auto incrementing ID field in your database and get that number ?

    Regards,
    Vinay Sahni
    SitePoint Community Moderator
    myPHPhost.com: mySQL 3.23, php4.0.3pl1, optimizer


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
  •