Location: PHPKode > projects > EasyFest > new/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["adminloggedIn"] == FALSE){
		header("Location:admin_login.php");
		exit;
	}include_once("config_admin.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);
header("Location:viewUserProfile.php?username=$UserName");
//eader("Location:indexApproval.php");	//header("Location:user_viewprof.php");
?>


	
Return current item: EasyFest