Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Split Page Results Implemetation

    Ok peeps, going custom solution again!

    Calling some entries from the database. Is it possible to use the standard split page results in order to have x number of outputted data on each page?

    If so can someone that knows how give me some pointers how to implement from db query through to output method?

    Thanks in advance.

    :)
    Phil Rogers
    A problem shared is a problem solved.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Split Page Results Implemetation

    You can check coding for "productsAll" where there is an admin switch under config > maximum values > Maximum Display of Products All Page

    This and many other pages have code to paginate after so many listings
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Split Page Results Implemetation

    Quote Originally Posted by kobra View Post
    You can check coding for "productsAll" where there is an admin switch under config > maximum values > Maximum Display of Products All Page

    This and many other pages have code to paginate after so many listings
    So it is possible then? split page results is a generic code that can be used for any database query?
    Phil Rogers
    A problem shared is a problem solved.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Split Page Results Implemetation

    split page results is a generic code that can be used for any database query?
    Look at the code...."any DB query" is too broad . . . must be coded correctly
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Split Page Results Implemetation

    As in if I select from a table other than table products? I can use the same coding logic and it will work? That's what I mean by any db query.
    Phil Rogers
    A problem shared is a problem solved.

  6. #6
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Split Page Results Implemetation

    So looking at this:
    PHP Code:
           if ($products_all_split->number_of_rows 0) {
            
    $products_all $db->Execute($products_all_split->sql_query);
            while (!
    $products_all->EOF) { 
    So I need to inderstand what and where $products_all_split is?
    Phil Rogers
    A problem shared is a problem solved.

  7. #7
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Split Page Results Implemetation

    Ah of course all set in the header file :-) think I should be ok to sort it now :-)
    Phil Rogers
    A problem shared is a problem solved.

 

 

Similar Threads

  1. Shipping products alone / split-don't split boxes
    By DarthFrohike in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 30 Oct 2010, 11:46 PM
  2. Split Page
    By Davx in forum General Questions
    Replies: 0
    Last Post: 13 Oct 2010, 03:52 PM
  3. help, please! - split-page-results error division by zero
    By vibehappy in forum Customization from the Admin
    Replies: 10
    Last Post: 17 Jul 2007, 11:17 PM
  4. Replies: 8
    Last Post: 5 Dec 2006, 10:52 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR