<?
if($username=='' || $fname=='' || $lname=='' || $email=='' || $city=='' || $state=='' || $age=='' || $password=='' || $eula=='no'){
include('emptyfield.php');
} elseif($password!=$password2){
include('nomatchpasswords.php');
} elseif($type==''){
include('error.php');
} else {
include('dbinfo.inc.php');
$query=mysql_query("SELECT * FROM users WHERE username='$username'");
$rows = mysql_num_rows($query);
if($rows > "0"){
include('nametaken.php');
} else {
mysql_query("INSERT INTO users (username, password, fname, lname, age, email, city, state, type)
VALUES ('$username', '$password', '$fname', '$lname', '$age', '$email', '$city', '$state', '$type')");
include('accountsuccess.php');
}} ?>
Now what you need to do, is change this to fit your needs, and then create a scipt to display all of your data, and use the include code I gave youto display the data in your table.