Page 1 of 2 12 LastLast
Results 1 to 25 of 27

Thread: ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Mar:2009
    Location: Sofia
    Posts: 4

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    pagination/ .
    .
    , , , . - .
    feature- MySQL LIMIT start,length length , start.

    $start = $elements_per_page * $page_number;
    $page_number 1-, ($page_number-1).

    MS SQL - pagination-a, -, MySQL .

    pagination-a , , . .. , , . .

  3. #3

  4. #4
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , .
    , .
    , suit- .
    , , page selector-a .

    , , - , , , , . , , .

  5. #5
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    pagination- javascript / clientside, tedych , - ... .
    , , .
    , , .. SELECT NUM(id) as rows_count FROM... .
    :
    - ( $rows_count/$rows_per_page , ).
    - ( 1 | 2 | 3 | 4 ... ), .

  6. #6
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ( source coda ) copy paste. ( php)
    ?

    . ?

  7. #7
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    . .

    - tedych.

    $_GET , .
    , , .
    .
    :
    Code:
    $all_num = //   ,      (        );
    $per_page = 8; //    ;
    $start = ((int)$_GET['page']*$per_page); //    limit  ,       ($_GET['page'] == 2), $start = 16;
    , $_GET['page'] == 0;
    0, 8, 8 .
    get == 1 ..

    query-
    Code:
    $sql = mysql_query($sql." limit  ".$start.",". $per_page);
    , 2 , .

    - , .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  8. #8
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ?

  9. #9
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    , , - .
    , , .. , .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  10. #10
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ( ) AJAX - - AJAX ?

  11. #11
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    Quote Originally Posted by Red_Leader View Post
    ( ) AJAX - - AJAX ?
    , .
    . , .

  12. #12
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    ..
    2- , . .

    , , .

    $sql , , pagination. - select * from ..., , ..
    ORDER BY , LIMIT , sql- :
    $sql_numrecords = "SELECT COUNT(*) FROM (" . $sql . ") AS Table_numrecords";
    .. $sql.
    , -.
    $sql_numrecords , , count(...) . .

    - , , , - , , , - .
    Last edited by tedych; 23rd May 2009 at 19:13.

  13. #13
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    JS , . JS, ...

    1 , N .
    "" *** .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  14. #14
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    - 10 ( mysql, mysql ). ajax javascript mysql . .

  15. #15
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , , , , , .., , ajax , JS , , , , . Back/Forward .
    , , - . , .., .
    Back/Forward , , - - ..

    Quote Originally Posted by Red_Leader View Post
    - 10 ( mysql, mysql ). ajax javascript mysql . .
    . , . . .
    , , .

  16. #16
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    " . , . . .
    , , ."

    -
    , .

  17. #17
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , */*, , . , , , . , , .

  18. #18
    Registered User boy4o's Avatar
    Join Date: May:2009
    Location:
    Posts: 129
    . ( , )

  19. #19
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ,

    // abv.bg - , . . javascript ?

  20. #20
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , Javascript, ..
    , , , .

  21. #21
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ?

  22. #22
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    jQuery jQueryUI. View Source , .

  23. #23
    Undead user Oldman's Avatar
    Join Date: Oct:2003
    Location: outside
    Posts: 432
    Quote Originally Posted by ivanov211 View Post
    . ?...
    . Copy/Paste , - Pager Pear. , . - , / .

    Pear MDB2 (DB abstraction layer), Date ( ), Log (Logging Framework), LiveUser ( ) ..
    .

  24. #24
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    Quote Originally Posted by Oldman View Post
    ...- Pager Pear. , . - , / .
    "It takes an array of data as input and pages it according to various parameters."
    - , .
    PEAR . , .

    , , , - , -. - , - ** .

  25. #25
    Undead user Oldman's Avatar
    Join Date: Oct:2003
    Location: outside
    Posts: 432
    Quote Originally Posted by tedych View Post
    "It takes an array of data as input and pages it according to various parameters."
    - , .
    ...
    , , . .
    , . , //. ( ).
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |