Oh, and this is what I have for my editprofile.php so far. Nothing much in the content part, just trying to get it to work.
<?php
if(!isset($_SESSION))
{
session_start();
}
$_SESSION['userID'] = $row["userID"];
?>
<?php
if ($_SESSION['authorized'] != true)
{
header("Location: login.php");
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/xml; charset=utf-8" />
<title>Edit Profile</title>
<style type = "text/css">
table {
margin: 0 auto;
</style>
</head>
<body>
<?php
require_once ("dbconn.php");
?>
<?php
if(isset($_SESSION['userID'])){
$result = mysql_query("SELECT * FROM `users` WHERE `userID` = '".mysql_real_escape_string($_SESSION['userID'])."' LIMIT 1") or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$userName = $_SESSION['userID'];
print ("Testing. Your ID is $userID
<br /><a href=\"http://localhost/mgnml/logout.php\">Log Out</a>");
}
}
?>
</body>
</html>