Auto Number PHP Listing

Discussion in 'PHP' started by maihannijat, Apr 17, 2011.

  1. #1
    Hello,

    I have PHP script which creates list of jobs with rows and columns.

    I want to add auto number column for this table, created column and added $pos++ but doesn't seems like it is working cause when clicking on next pages it start again the number from 1.

    Here is the link http://afghanjobs.org/all_jobs_result/

    complete code is attached.
    View attachment code.txt
     
    maihannijat, Apr 17, 2011 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    oooppsss.. can you elaborate more?
     
    Last edited: Apr 18, 2011
    bartolay13, Apr 18, 2011 IP
  3. maihannijat

    maihannijat Member

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    could you please put more lights on your answer.... How to do this?
     
    maihannijat, Apr 18, 2011 IP
  4. maihannijat

    maihannijat Member

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Look to code.

    I have jobs list that shows all active jobs on page in columns and rows. I want to add another column for rows to show Auto number.

    I created column but how to add auto number function.
     
    maihannijat, Apr 18, 2011 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So you need to replace the simplying putting the possition to the possition + (page size x (the page number -1))
     
    AstarothSolutions, Apr 18, 2011 IP