1
xsell
How do i make Next and Back button
  • 2009/10/3 7:34

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 1


Hello Xooper's .

Today i Played this Code . to See all my Active user's . Although i know i can do it from admin page where select find users .. but i did this way to be able to see all the users with on click just open the file lets say ' Got old and Lazy '
My only Problem is i limited the page with 10 users and cant figuer out how to make Next and back for next 10 users or to go back to the last 10 users .

Any help . Please

//Let's connect to database and choose the database
$result mysql_query("SELECT * FROM ".$xoopsDB->prefix("users")." WHERE level=1 LIMIT 10");
$rows mysql_num_rows($result);
if(
$rows 0){

//Display users
        
echo ""
            
.""
            
."User IDlevel"
            
."";

while(
$row mysql_fetch_array($result)){
echo 
"".$row['uid']."".$row['level']."";
}

    echo 
"";

echo 
"
    
    "
;

2
DarinAllan
Re: How do i make Next and Back button

Membership module no good for what you want?

3
onasre
Re: How do i make Next and Back button
  • 2009/10/3 10:15

  • onasre

  • Not too shy to talk

  • Posts: 150

  • Since: 2006/8/12


Edit the Membership index page

Login

Who's Online

366 user(s) are online (279 user(s) are browsing Support Forums)


Members: 1


Guests: 365


cthierry,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits