Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16715
| From | super70s <super70s@super70s.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Pagination isn't working |
| Date | 2016-04-02 20:08 -0500 |
| Organization | Datemas.de http://www.news.datemas.de |
| Message-ID | <super70s-906E83.20083802042016@boina.datemas.de> (permalink) |
| References | <super70s-3A8AC1.16045102042016@boina.datemas.de> <hrn0gbdfgkbqece174v4ilosa4pr5m1qnp@4ax.com> |
In article <hrn0gbdfgkbqece174v4ilosa4pr5m1qnp@4ax.com>,
Richard Yates <richard@yatesguitar.com> wrote:
> On Sat, 02 Apr 2016 16:04:51 -0500, super70s
> <super70s@super70s.invalid> wrote:
>
> >I have a little PHP article directory script with pagination at the
> >bottom, but it isn't working when you click on pages 2, 3, 4, etc., --
> >it always shows the same 10 entries on the first page. Anyone have an
> >idea how I can fix this?
> >
> ></table><font class=bodylinks>Go To Page :
> > [1]
> > <a href="?pg=2&page=category&category_id=86"
> >class=bodylinks><strong>2</strong></a>
> > <a href="?pg=3&page=category&category_id=86"
> >class=bodylinks><strong>3</strong></a>
> > <a href="?pg=4&page=category&category_id=86"
> >class=bodylinks><strong>4</strong></a>
>
> You have not shown any php code, particularly what is done with
> "?pg=x".
I came up with a quick & dirty workaround, I changed 10 to 50 in
func.php...
if (!empty($_GET["ps"]))
$this->ps = (int) $_GET["ps"];
else
$this->ps = 50;
No pagination, but at least all the articles are showing. I doubt I'll
ever have any more than 50 articles in one category (and if I do I can
just increase it).
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Pagination isn't working super70s <super70s@super70s.invalid> - 2016-04-02 16:04 -0500
Re: Pagination isn't working Richard Yates <richard@yatesguitar.com> - 2016-04-02 17:12 -0700
Re: Pagination isn't working super70s <super70s@super70s.invalid> - 2016-04-02 20:08 -0500
Re: Pagination isn't working "R.Wieser" <address@not.available> - 2016-04-03 09:46 +0200
Re: Pagination isn't working super70s <super70s@super70s.invalid> - 2016-04-03 14:05 -0500
Re: Pagination isn't working "R.Wieser" <address@not.available> - 2016-04-03 23:09 +0200
Re: Pagination isn't working Arno Welzel <usenet@arnowelzel.de> - 2016-04-04 11:35 +0200
Re: Pagination isn't working "R.Wieser" <address@not.available> - 2016-04-04 12:44 +0200
Re: Pagination isn't working "J.O. Aho" <user@example.net> - 2016-04-03 10:30 +0200
csiph-web