php pagination

User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: php pagination

Post by Neo » Mon Jan 04, 2010 4:54 pm

The issue is, whenever you call this page, you need to add ?page=1 to the end of URL.
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: php pagination

Post by Mysoogal » Mon Jan 04, 2010 5:05 pm

Neo wrote:The issue is, whenever you call this page, you need to add ?page=1 to the end of URL.

so com/?page=1

but when i enter example www.example.com/

it will not add the ?page=1 only when i click next page it will show me ?page=1 :o

i think i can probably redirect to that url with .htaccess :D
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: php pagination

Post by Mysoogal » Mon Jan 04, 2010 5:09 pm

found a way

Code: Select all

<meta http-equiv="refresh" content="0; url=http://example.com/?page=1"> 
no need for .htaccess :D
Post Reply

Return to “PHP & MySQL”