[help]Page Jump error ?

Started on the old forum in March 2012 · view the original in the archive · old links redirect here

No replies · 328 views · started 14 years ago · 1 min read

12345xmen Developer · 239 posts #1

hi friends in my script

thread page have 20 reply /page but 21th reply when ocur its give pagination

page 1,2 Next like but when click on page 2 ya next same page open dnt show last reply...............

in my .htacess code is

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^showforum-([0-9]+)/p/([0-9]+).html$ showforum.php?fid=$1&p=$2 [L] RewriteRule ^showforum-([0-9]+).html$ showforum.php?fid=$1 [L]

RewriteRule ^t/([0-9]+)/p/([0-9]+)/(.).html$ showthread.php?tid=$1&p=$2 [L] RewriteRule ^t/([0-9]+)/(.).html$ showthread.php?tid=$1 [L]

</IfModule>

and pagination code which i use is

$pages=pagination($totalrecords,$p,$config->numrepliesperpage);
	
	if(is_array($pages))
	{
	print "<b>Pages:  ";
	foreach($pages as $key => $val)
	{
		if($val == $p)
		{	print $key."  ";	}
		else{	print "<a href=\"".$config->url."showthreads-".$threadid."-".$val.".html\">".$key."</a>  ";	}
		
	}
	print "</b>";
	}

help me where is wrong i dnt solve this !

Added after 17 minutes:

delet it.................solve own self !

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close