Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 154
0 Users 3 Guests Online

Displaying more than one result

For this i will be using the rmb members system so here we go.

PHP Code
1
2
3
4
5
6
7
8
9
10
<?php
session_start
(); 
include 
"config.php"

$fetch mysql_query(SELECT FROM `membersORDER BY `usernameASC);
while (
$array mysql_fetch_array($fetch)
{
echo (
"- $array[username]<br>"); 
)


thats the whole code.

PHP Code
1
2
3
4
5
while ($array = mysql_fetch_array($fetch)
{
echo ("- $array[username]<br>"); 
)

This part loops the query so instead of displaying 1 result it will keep looping until it gets all the results

Thats it for my tutorial check out for more by me soon. Including the User System forum add-on
SkillMaster
Views:
2054
Rating:
There are currently no comments for this tutorial.