I Need PHP Help Before I Cry :(

5 replies
  • WEB DESIGN
  • |
I am missing a value that tells the script to get the next page......Ok, not quite so simple.

On my page there is a Category- then Page: 1 2 3 4 5 6

When you are on page 1 and click page 5 it shows you on page 5 but still loads content from page 1.

</tr>
</table><font class=bodylinks>Go To Page :
<?php $pg->showPaging("", "&page=category&category_id=".$_GET["category_id"]); ?></font>&nbsp;<a href="articlerss.php?type=2&category=<?=$_GET["category_id"]?>"><img src="http://www.warriorforum.com/images/rss.jpg" border=0 alt="See As RSS"></a>
<hr color="D6D6D6">

Notice >showPaging("MISSING VALUE",

Any ideas?
#cry #php
  • Profile picture of the author janita
    Well it is redirection problem.
    {{ DiscussionBoard.errors[3043699].message }}
  • Profile picture of the author aesoft
    Originally Posted by cbrauer View Post

    I am missing a value that tells the script to get the next page......Ok, not quite so simple.

    On my page there is a Category- then Page: 1 2 3 4 5 6

    When you are on page 1 and click page 5 it shows you on page 5 but still loads content from page 1.

    </tr>
    </table><font class=bodylinks>Go To Page :
    <?php $pg->showPaging("", "&page=category&category_id=".$_GET["category_id"]); ?></font>&nbsp;<a href="articlerss.php?type=2&category=<?=$_GET["category_id"]?>"><img src="http://www.warriorforum.com/images/rss.jpg" border=0 alt="See As RSS"></a>
    <hr color="D6D6D6">

    Notice >showPaging("MISSING VALUE",

    Any ideas?
    Looks like the page ID is missing. The script doesn't know which page to load without some sort of value.
    {{ DiscussionBoard.errors[3043732].message }}
    • Profile picture of the author cbrauer
      So do I need to add "fields" to the query box in the database?

      Run SQL query/queries on database: _article
      SELECT * FROM `category_master` WHERE 1

      And add fields:
      Category_ID
      Category_name
      Cadegory_parent_ID
      Category_level

      and so on.

      Do I need to add these fields and run a query?
      Signature
      Jixty Is a new search engine with tons of cool features including low cost PPC. Preview full functioning websites before clicking links to ensure high quality results.

      ArticleHomestead post articles for free and share them with the world. Do follow backlinks, please only submit quality articles.
      {{ DiscussionBoard.errors[3043771].message }}
      • Profile picture of the author aesoft
        Originally Posted by cbrauer View Post

        So do I need to add "fields" to the query box in the database?

        Run SQL query/queries on database: _article
        SELECT * FROM `category_master` WHERE 1

        And add fields:
        Category_ID
        Category_name
        Cadegory_parent_ID
        Category_level

        and so on.

        Do I need to add these fields and run a query?
        Sorry, I really don't know what you're working with or how in-depth it is with what you're trying to do. Perhaps someone else can give you a more "clear cut" answer to your question than I.
        {{ DiscussionBoard.errors[3043784].message }}
        • Profile picture of the author cbrauer
          Originally Posted by aesoft View Post

          Sorry, I really don't know what you're working with or how in-depth it is with what you're trying to do. Perhaps someone else can give you a more "clear cut" answer to your question than I.

          Thanks James.
          This is just driving me crazy because I know it is something I am overlooking and although I don't consider myself a programming expert I am in no way new to Mysql.
          Signature
          Jixty Is a new search engine with tons of cool features including low cost PPC. Preview full functioning websites before clicking links to ensure high quality results.

          ArticleHomestead post articles for free and share them with the world. Do follow backlinks, please only submit quality articles.
          {{ DiscussionBoard.errors[3043791].message }}

Trending Topics