Location: PHPKode > projects > EasyFest > new/addingBooth.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;
	}
	//$uid = $_SESSION['ud'];
	$BoothType = $_POST['BoothType'];
	$UserName = $_SESSION['UserName'];
	$CompanyName = $_POST['CompanyName'];

	$CheckInDate = $_POST['CheckInDate'];
	$CheckOutDate = $_POST['CheckOutDate'];
	$Length = $_POST['Length'];
	$Width = $_POST['Width'];
	$Charge = $_POST['Charge'];
	$Status = $_POST['Status'];
	$AddressCompany = $_POST['AddressCompany'];
	$CompanyPhoneNo = $_POST['CompanyPhoneNo'];
	
		
		$sqlQuery = "INSERT INTO  booths(`BoothType`,`UserName`,`CompanyName`,`CheckInDate`,`CheckOutDate`,`Length`,`Width` ,`Charge` ,`Status`,`AddressCompany`,`CompanyPhoneNo`) VALUES 
('$BoothType', '$UserName', '$CompanyName', '$CheckInDate', '$CheckOutDate', '$Length' , '$Width', '$Charge', '$Status', '$AddressCompany', '$CompanyPhoneNo')";
	

$result = mysql_query($sqlQuery) or die("Invalid query: " . mysql_error() . "<br><br>". $sqlQuery);
echo "Booth information has been added";
//header("Location:indexApproval.php");	//header("Location:user_viewprof.php");
?>


	
Return current item: EasyFest