You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 884 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Advance to next page [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ss-2_renegade
Sergeant
Sergeant


Joined: Aug 18, 2004
Posts: 120


PostPosted: Sun Apr 22, 2007 6:38 am Reply with quoteBack to top

I'm making an events signup module but having a problem advancing to the next page in the admin section.

In the admin section, you have an option to display a certain number per page.

But when you click on the Next link, it takes you back to the main admin page, but the same link takes you to the next page when you are viewing who has already signed up, a non admin module.

Here is the advance to next page code.

Quote:


if(!isset($start)) $start = 0;

$query = "SELECT count(*) as count FROM event";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$numrows = $row['count'];

if($start > 0){
echo "<center>";
echo "<-<a href=\"" . $PHP_SELF . "?name=EventAdmin&start=" . ($start - $perpage) .
"\">Prev</a>";
echo " - ";
} else {
echo "<center>";
echo "Prev";
echo " - ";
}

if($numrows > ($start + $perpage)){
echo "<a href=\"" . $PHP_SELF . "?name=EventAdmin&start=" . ($start + $perpage) .
"\">Next</a>->";
echo "</center>";
} else {
echo "Next";
echo "</center>";
}
Find all posts by ss-2_renegadeView user's profileSend private message
sting
Site Admin
Site Admin


Joined: Jul 24, 2003
Posts: 1986

Location: Apparently ALWAYS Online. . .

PostPosted: Wed Aug 22, 2007 6:05 am Reply with quoteBack to top

Still having this issue?

-sting

_________________
Is it paranoia if they are really out to get you?

-------------------------------------------------------
sting usually hangs out at nukehaven.net
Find all posts by stingView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
ss-2_renegade
Sergeant
Sergeant


Joined: Aug 18, 2004
Posts: 120


PostPosted: Thu Aug 23, 2007 1:31 pm Reply with quoteBack to top

yes i am.
can you help?
Find all posts by ss-2_renegadeView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.035 Seconds - 344 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::