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 "<table border='1' width='100%'>"
            
."<tr>"
            
."<td width='25%'><b>User ID</b></td><td width='25%'><b>level</b></td>"
            
."</tr>";

while(
$row mysql_fetch_array($result)){
echo 
"<tr><td width='25%'>".$row['uid']."</td><td width='25%'>".$row['level']."</td></td></tr>";
}

    echo 
"</table>";

echo 
"</td>
    </tr>
    </table>"
;

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

135 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

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

Latest GitHub Commits