<?php require_once('connections/careergroup.php'); ?>
<html>
<head>
<title> <?php echo $first_name; ?> <?php echo $lastname; ?>s Profile</title>
</head>
<body>
<?php
// Check for a form submission
if (isset($_GET["username"])){
$email = $_GET['username'];
mysql_connect ("$hostname_careergroup", "$username_careergroup", "$password_careergroup")
or die ("Could not connect to the server");
mysql_select_db("careergroup") or die ("That database could not be found");
$userquery = mysql_query("SELECT * FROM members WHERE username= '$email'") or die ("the query");
if (mysql_num_rows($userquery) != 1) {
die ("that member could not be found!");
while($row = mysql_fetch_array ($userquery, MYSQL_ASSOC)){
$first_name = $row['first_name'];
$last_name = $row['last_name'];
$email = $row['email'];
$password = $row['password'];
$sex = $row['sex'];
$dbusername = $row['username'];
}
if ($email != $email) {
die ("there has been a fatal erroe. please try again. ");
}
if ($activated == 0) {
$active = "The account has not been activated.";
}else{
$active = "The account has been activated.";
}
// See what lever the user is
if ($access == 0) {
$admin = "This user is not an administrator.";
}else {
$admin = "This use is an administrator.";
}
}
?>
<h2><?php echo $first_name; ?> <?php echo $last_name; ?>s Profile</h2><br />
<table>
<tr><td> Firstname:</td><td><?php echo $first_name; ?></td></tr>
<tr><td> Lastname:</td><td><?php echo $last_name; ?></td></tr>
<tr><td> Email:</td><td><?php echo $email; ?></td></tr>
<tr><td> Password:</td><td><?php echo $pastword; ?></td></tr>
<tr><td> Sex:</td><td><?php echo $sex; ?></td></tr>
<?php
} else die ("you need to specify a username!");
?>
</body>
</html>
lillorme 0 Light Poster
minitauros 151 Junior Poster Featured Poster
lillorme 0 Light Poster
lillorme 0 Light Poster
lillorme 0 Light Poster
Tpojka 56 makingMagic(true);
lillorme 0 Light Poster
lillorme 0 Light Poster
lillorme 0 Light Poster
lillorme 0 Light Poster
Tpojka 56 makingMagic(true);
lillorme 0 Light Poster
Tpojka 56 makingMagic(true);
lillorme 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.