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
help me where is wrong i dnt solve this !
Added after 17 minutes:
delet it.................solve own self !
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
PHP Code:
$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 !