[help]Page Jump error ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [help]Page Jump error ?

    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

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

    help me where is wrong i dnt solve this !

    Added after 17 minutes:

    delet it.................solve own self !
    Last edited by 12345xmen; 10.03.12, 06:06.
Working...
X