Forums

Pagination problem with mysql in wordpress (3 posts)

  1. maximus83
    Member
    Posted 10 months ago #

    I'm a novice with php and mysql so please be kind. The problem is I'm calling a database which as various states open, closed, pending etc, all this works fine.

    The problem is when I click next on my pagination links the page just reloads to the start page with all states visible and the first 6 rows visible or if I'm on the start page its just the same page.

    My code seems to work right as the url of next, prev page as a different start number for the start of the database query eg (http:...........wordpress/?page_id=1072?s=6&np=3).

    I was wondering if this could be to with the URL i'm using for the links and wordpress.

    please see code below, any help would be much appreciated.

    [code moderated - please read http://codex.wordpress.org/Forum_Welcome#Posting_Code about using the pastebin]

  2. maximus83
    Member
    Posted 10 months ago #

  3. maximus83
    Member
    Posted 10 months ago #

    I'm delving through old posts and I'm starting to wonder if its due to me using a custom mysql in wordpress, . Is there a way round this?

    any help really appreciated

Reply

You must log in to post.

About this Topic