i want admin's email to be inputted as HIDDEN if someone view admin's profile. how can i add it to this code?
and i got only username and email in profile.php. how can i add other features like birthday.
PHP Code:
<?
include("include/session.php");
include("include/protect.php");
?>
<?
$req_user = trim($_GET['user']);
if(!$req_user || strlen($req_user) == 0 ||
!eregi("^([0-9a-z])+$", $req_user) ||
!$database->usernameTaken($req_user)){
die("Username not registered");
}
if(strcmp($session->username,$req_user) == 0){
echo "<b>My Account</b>";
}
else{
echo "<b>User Info</b>";
}
$req_user_info = $database->getUserInfo($req_user);
echo "<br><br><b>Username:</b> ".$req_user_info['username']."<br>";
echo "<b>Email:</b> ".$req_user_info['email']."<br>";
if(strcmp($session->username,$req_user) == 0){
echo "<br><a href=\"useredit.php\">Edit Account</a><br>";
}
echo "<br>[<a href=\"home.php\">Main Menu</a>]<br>";
?>
Comment