Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
thewipe
New Member
New Member



Joined: Jan 03, 2005
Posts: 2

PostPosted: Wed Jan 12, 2005 12:21 pm Reply with quote

I manage to put a PHPAYPAL to my PHPNUKE 7 everything works fine except for the next 1 2 prev button .....before the scripts work only on a single HTML page and I use it as a frame meaning it has the another set of frame to the left side like this forum . And I cannot manage to make it work . Please help .

This is the link Only registered users can see links on this board! Get registered or login!

and this is the script

Code:
<? 

} // while
print "<table width=500 align=center><tr><td colspan=2 align=center>\n";
print "<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">\n";
$prevoffset=$offset-$products_per_page;
if ($prevoffset >= 0) {
   print "<a href=\"$PHP_SELF?offset=$prevoffset\">PREV</a> &nbsp; \n";
} else {
   print "PREV &nbsp; \n";
}

// calculate number of pages needing links
$pages=intval($numrows/$products_per_page);

// $pages now contains int of pages needed unless there is a remainder from division
if ($numrows%$products_per_page) {
    // has remainder so add one page
    $pages++;
}

for ($i=1;$i<=$pages;$i++) { // loop thru
    $newoffset=$products_per_page*($i-0);
    if($newoffset==$offset) {
       print "<b>$i</b> &nbsp; \n";
    } else {
       print "<a href=\"$PHP_SELF?offset=$newoffset\">$i</a> &nbsp; \n";
    }
}

// check to see if last page
if (!(($offset/$products_per_page)==$pages) && $pages!=1) {
    // not last page so give NEXT link
    $newoffset=$offset+$products_per_page;
    if ($newoffset < ($numrows+1)) {
       print "<a href=\"$PHP_SELF?offset=$newoffset\">NEXT</a><p>\n";
    } else {
       print "NEXT &nbsp;<p>\n";
    }
   
} else {
       print "NEXT &nbsp;<p>\n";
}

........


Thank you in advance.
regards,
JJ
 
View user's profile Send private message
thewipe







PostPosted: Wed Jan 12, 2005 1:13 pm Reply with quote

its fixed now

I just need to supply the right correct set of variable assignment


Thanks to Mr Mike of PHPAYPAL
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©