Also personally I recommend building your scripts from scratch when learning so you don't just see the result of something, but understand how to use it.
to a) to determine how much info to display, its order and how many thats all done via the query passed to your database. Lets have a look:
I want to retrieve - certain information - from my members - that are in said group - organized by field - and I want to see 15 of them
SELECT field_list table_name WHERE conditional ORDER BY field ASC LIMIT 15
to b) to make clickable links you build an html element when you output the data you just selected in A.
You have selected the following data:
ID (int), Name (string), Type (string), Code (int)...
Lets use this data to create a link from this row to a full profile page, which will be deciphered in profile.php:
<?php
// First create an html table
echo '<table>
<tr>
<th>Name</th>
<th>Type</th>
<th>Code</th>
</tr>';
// Create a loop to get one row of the returned data at once:
while( $row = mysql_fetch_assoc($result) ) {
// while continues util the evaluation in () is false
// $row will contain a single row of data say: ID=1,name=Dero,type=BA,code=1234
// each peice of information will be available thru array keys IE $row['id'] will give me the value of 1
// now start printing this information to the browser with a link to the user's profile where their name is
echo '<tr>
<td><a href="profile.php?id='. $row['id'] .'">'. $row['name'] .'</a></td>
<td>'. $row['type'] .'</td>
<td>'. $row['code] .'</td>
</td>';
//clode the loop
}
// end the html table
echo '</table>';