This is how i have mine, which will show the users info:
Code:
<?php
$username="*****";
$password="*****";
$database="*****";
mysql_connect('******',$username,$password);
@mysql_select_db($database) or die("Unable to select database");
$query = "SELECT * FROM users";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo
'<table border="1" width="650" bordercolor="#c0c0c0"><tr><td width="80">'.$row['id']. '</td>'.
'<td width="120">'.$row['loginname']. '</td>'.
'<td width="120">'.$row['password']. '</td>'.
'<td width="120">'.$row['createdate']. '</td>'.
'<td width="120">'.$row['name']. '</td>'.
'<td width="30">'.$row['age']. '</td>'.
'<td width="150">'.$row['email']. '</td>'.
'<td width="30">'.$row['warn']. '</td></tr></table>';
echo "";
}
?>
Just change the stuff to what you need, i have a full working login /registering thing if you would like any code for that just say? BY PMING ME, I MAY NOT COME HERE AGAIN!!