Here's a REAL profile page, n00bs:
<?
include("functions.php");
if($_GET[user]){
$thisuser=mysql_esc($_GET[user]);
if(mysql_count(mysql_query("SELECT * FROM users WHERE username='$thisuser'"))<1){
header("Location:/index.phtml");
}
$ud=mysql_fetch_array(mysql_query("SELECT * FROM users WHERE username='$thisuser'"));
$pd=mysql_fetch_array(mysql_query("SELECT * FROM profile WHERE user='$thisuser'"));
if($pd[biography]==""){
$pd[biography]=='<div align="center" id="nothing">Nothing entered.</div>';
}
$myud=mysql_fetch_array(mysql_query("SELECT * FROM users WHERE username='$user'"));
$mypd=mysql_fetch_array(mysql_query("SELECT * FROM profile WHERE user='$user'"));
$rank=PrintRank($_GET[user]);
//die($rank);