I need it so if level = 3,4 - DJ Name becomes name
File Content
PHP Code:<?
ob_start();
include("config.php");
if (!$_GET[user])
{
$getuser = mysql_query("SELECT * from users order by level asc");
while ($user = mysql_fetch_array($getuser))
{
// gets all the users information.
echo ("<font face=\"Verdana\" size=\"1\" color=\"#000000\"><a href=\"members.php?view=Profile&user=$user[username]\">$user[username]</a><br />\n");
// links to a page to view the user's profile.
}
}
ELSE
{
$getuser = mysql_query("SELECT * from users where username = '$_GET[user]'");
$usernum = mysql_num_rows($getuser);
if ($usernum == 0)
{
echo ("<table cellpadding=\"2\" width=\"359\" id=\"table1\" height=\"369\">
<tr>
<td colspan=\"2\" height=\"16\" width=\"351\"><b>
<div class=\"header\">
<font face=\"Verdana\" size=\"1\" color=\"#D75C03\">$_GET[user]'s Information:</font></div>
</b>
<div class=\"underheader\">
<i><font size=\"1\" face=\"Verdana\" color=\"#D75C03\">View some information about
$_GET[user]</font></i></div>
<font size=\"1\" face=\"Verdana\"><br></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>General Information:</b></font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">DJ Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">DJ $_GET[user]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Habbo Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Forum Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Site Title:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Age:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Main Hotel:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Gender:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Song:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Genre:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite CH Management:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Habbo Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Real Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">wow</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Interests:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font face=\"Verdana\" size=\"1\" color=\"#FF9933\">w</font></td>
</tr>
<tr>
<td height=\"16\" width=\"157\"></td>
<td height=\"16\" width=\"188\"></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>A Bit About </b></font>
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$_GET[user]</font></b><font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>:</b></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#FF9933\" height=\"16\" width=\"351\">
<font size=\"1\" face=\"Verdana\">$profile[about]</font></td>
</tr>
</table>
<div style=\"opacity: 0.4;\">
<font size=\"1\" face=\"Verdana\"> </font><table cellpadding=\"2\" width=\"359\" id=\"table2\" height=\"17\">
<tr>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"169\">
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$_GET[user]'s
Habbo Image</font></b></td>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"176\">
<b><font face=\"Verdana\" size=\"1\" color=\"#FFFFFF\">$_GET[user]'s Habbo
is:</font></b><img border=\"0\" src=\"status/status.php?name=$_GET[user]\" width=\"50\" height=\"16\"></td>
</tr>
<tr>
<td height=\"13\" width=\"169\" bgcolor=\"#FF9933\">
<p align=\"center\">
<img border=\"0\" src=\"figure/figure.php?name=$_GET[user]\"></td>
<td height=\"13\" width=\"176\">
<p align=\"center\"></td>
</tr>
</table>
</div>");
}
else
{
$profile = mysql_fetch_array($getuser);
echo ("<table cellpadding=\"2\" width=\"359\" id=\"table1\" height=\"369\">
<tr>
<td colspan=\"2\" height=\"16\" width=\"351\"><b>
<div class=\"header\">
<font face=\"Verdana\" size=\"1\" color=\"#D75C03\">$profile[username]'s Information:</font></div>
</b>
<div class=\"underheader\">
<i><font size=\"1\" face=\"Verdana\" color=\"#D75C03\">View some information about
$profile[username]</font></i></div>
<font size=\"1\" face=\"Verdana\"><br></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>General Information:</b></font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">DJ Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">DJ $profile[username]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Habbo Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[habboname]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Forum Name:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[forumname]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Site Title:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[sitetitle]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Age:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[age]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Main Hotel:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[hotel]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Gender:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[gender]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Song:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[favouritesong]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite Genre:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[favouritegenre]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Favourite CH Management:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[favmanagement]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Habbo Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[besthabbofriend]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Best Real Friend:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[bestfriend]</font></td>
</tr>
<tr>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"157\"><b>
<font size=\"1\" face=\"Verdana\">Interests:</font></b></td>
<td bgcolor=\"#FF9933\" height=\"16\" width=\"188\">
<font size=\"1\" face=\"Verdana\">$profile[interests]</font></td>
</tr>
<tr>
<td height=\"16\" width=\"157\"></td>
<td height=\"16\" width=\"188\"></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#D75C03\" height=\"16\" width=\"351\">
<font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>A Bit About </b></font>
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$profile[username]</font></b><font color=\"#ffffff\" size=\"1\" face=\"Verdana\"><b>:</b></font></td>
</tr>
<tr>
<td colspan=\"2\" bgcolor=\"#FF9933\" height=\"16\" width=\"351\">
<font size=\"1\" face=\"Verdana\">$profile[about]</font></td>
</tr>
</table>
<div style=\"opacity: 0.4;\">
<font size=\"1\" face=\"Verdana\"> </font><table cellpadding=\"2\" width=\"359\" id=\"table2\" height=\"17\">
<tr>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"169\">
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$profile[habboname]'s Habbo Image</font></b></td>
<td bgcolor=\"#D75C03\" height=\"16\" width=\"176\">
<b><font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$profile[username]'s
Habbo is:</font></b><img border=\"0\" src=\"status/status.php?name=$profile[habboname]\" width=\"50\" height=\"16\"></td>
</tr>
<tr>
<td height=\"13\" width=\"169\" bgcolor=\"#FF9933\">
<p align=\"center\">
<img border=\"0\" src=\"figure/figure.php?name=$profile[habboname]\"></td>
<td height=\"13\" width=\"176\">
<p align=\"center\"></td>
</tr>
</table>
</div>");
// in the above code, we display the user's information.
}
}
?>
<body link="#000000" vlink="#000000" alink="#000000"><link rel="stylesheet" type="text/css" href="http://www.crazyhabbo.net/halloween/stylesheet.css">
<title>Staff List</title>





Reply With Quote


