1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Page number getting longer

Discussion in 'PHP' started by node/1, Dec 2, 2010.

  1. #1
    Hey I did pager on my own and I didn't know how to make it smaller just like google pager I want to show just 10 page number
     
    node/1, Dec 2, 2010 IP
  2. cshwebdev

    cshwebdev Active Member

    Messages:
    226
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    80
    #2
    $query = "SELECT * FROM page LIMIT 10";
    Code (markup):
    You want to use the LIMIT feature to limit your results, if you want to do Pagination, just google "PHP Pagination Tutorial".
     
    cshwebdev, Dec 2, 2010 IP
  3. node/1

    node/1 Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cshwebdev, If have found the tutorial on google I wouldn't post here :) Actually I have no problem with creating pagenation I already did I would mention the numbers getting longer I want to limit them just 10 numbers per page
     
    Last edited: Dec 3, 2010
    node/1, Dec 3, 2010 IP
  4. viruthagiri

    viruthagiri Active Member

    Messages:
    232
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    95
  5. node/1

    node/1 Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    node/1, Dec 3, 2010 IP