Location: PHPKode > projects > EasyFest > new/associate_editingUserDetails.php
<?php
include_once("include/db_connection.php");
	header("Expires: Thu, 17 May 2001 10:17:17 GMT");    // Date in the past
	header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
	header ("Cache-Control: no-cache, must-revalidate");  // HTTP/1.1
	header ("Pragma: no-cache");                          // HTTP/1.0              
	session_start();
		if($_SESSION["loggedIn"] == FALSE){
		header("Location:admin_login.php");
		exit;
			
	}include_once("config.php");

	//$uid = $_SESSION['ud'];
	$UserName=$_SESSION['UserName'];
	$FirstName = $_POST['FirstName'];
	$LastName = $_POST['LastName'];
	$Age = $_POST['Age'];

	$Sex = $_POST['Sex'];
	
	$PhoneNo = $_POST['PhoneNo'];
	$EmailId = $_POST['EmailId'];
	$Description = $_POST['Description'];
			
		/*$checkfest = mysql_query("SELECT * FROM fest WHERE `FestName` ='$FestName'");
		$fest_exist = mysql_num_rows($checkfest);
		if($fest_exist > 0)
{
          $messages[1] = "Fest already exists";
		  header("Location:editFest.php"."?error=fest already exists");
exit();
  //  unset($f);
 } */
		$sqlQuery = "UPDATE  `users` SET `FirstName` = '$FirstName',`LastName` = '$LastName',`Description` = '$Description',`Sex` = '$Sex',
		`PhoneNo`= '$PhoneNo',`EmailId`= '$Emailid' ,`Age` = '$Age'  WHERE `UserName` = '$UserName'";


$result = mysql_query($sqlQuery) or die("Invalid query: " . mysql_error() . "<br><br>". $sqlQuery);?>
<script type="text/javascript">
<!--
window.location = "associate_viewUserProfile.php?username=<?php echo $UserName; ?>";
//-->
</script>



	
Return current item: EasyFest