I am an experienced ASP/MS SQL programmer, but somewhat new to PHP. I am having an issue with the following code in IE. In FF it works flawlessly. The issue in IE is that when you edit the data and submit, it effects the database but continues to display the old information. Almost like the variables arent being refreshed. Its odd. Any help would be much appreciated.
if ($trigger=="" && $action=="updateC") {
$sql = "UPDATE users set email='".$POST['email']."',emergContact='".$POST['emergContact']."',
emergPhone='".$POST['emergPhone']."',dept='".$POST['dept']."',
firstName='".$POST['firstName']."',lastName='".$POST['lastName']."' WHERE username='".$SESSION['user']."'";
$message = "Update successful.";
mysql_query($sql);
header("Location:http://evilempire/empire/profile.php?message=".$message);
} else {
$sql = "SELECT
firstName,lastName,emergContact,emergPhone,email,lastLogin,dept,tcNumber
FROM users where username = '".$SESSION['user']."'";
$result = mysql_query($sql)
or die("SELECT Error: ".mysql_error());
if(!$result) die("Query Failed.");
$row = mysql_fetch_assoc($result);
$firstName=$row['firstName'];
$lastName=$row['lastName'];
$emergContact=$row['emergContact'];
$emergPhone=$row['emergPhone'];
$email=$row['email'];
$lastLogin=$row['lastLogin'];
$dept=$row['dept'];
$tcNumber=$row['tcNumber'];
}
[/color]