Pagination based on the no.of characters in a variable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Faree

    Pagination based on the no.of characters in a variable

    I am workign on a news portal which needs paginaiton as usual.but all
    the code i got depends on the number of records that will come from
    database :( .it is working well too.

    But i need pagination depends on the number of rows or number
    characters in a variable.for example if there are more than 100
    characters in that it should be display with pagination code.could any
    one comeup with suggestios on this .


    Any suggetions will be appriciated.

    Faree.

  • Mike Willbanks

    #2
    Re: Pagination based on the no.of characters in a variable

    Faree,[color=blue]
    > I am workign on a news portal which needs paginaiton as usual.but all
    > the code i got depends on the number of records that will come from
    > database :( .it is working well too.
    >
    > But i need pagination depends on the number of rows or number
    > characters in a variable.for example if there are more than 100
    > characters in that it should be display with pagination code.could any
    > one comeup with suggestios on this .[/color]

    I have no clue where this data is or what you are doing with it...

    strlen will tell you the amount of characters in a variable.
    count will tell you how many items in an array

    Further more if you were to do pagination on these items we couldn't
    help you unless you gave a bit more information and were a little more
    specific.




    Mike Willbanks
    Zend Certified Engineer

    Comment

    Working...