<?php
	require_once ('authorize1.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">

<head>
<title>Moreno Travel</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="content-type"
        content="text/html; charset=utf-8" />
</head>



<?php include 'admin_header.php'; ?>

<h1></h1>
<?php


require_once('connectvars.php');

	

$dbh = mysql_connect(hostname, username, password)

	or die("Unable to connect to MySQL");

mysql_select_db (dbname, $dbh);



$package_name = $_POST['package_name'];
$duration = $_POST['duration'];
$startingprice = $_POST['startingprice'];
$feature = $_POST['feature'];
$overview = $_POST['overview'];
$brochurepic = $_POST['brochurepic'];
$overviewpic = $_POST['overviewpic'];
$overviewpic2 = $_POST['overviewpic2'];
$includes = $_POST['includes'];
$doesnotinclude = $_POST['doesnotinclude'];
$saleitem = $_POST['saleitem'];
$price_layout = $_POST['price_layout'];
$price_notes = $_POST['price_notes'];
$longterm = $_POST['longterm'];
$moredetails = $_POST['moredetails'];
$morecities = $_POST['morecities'];
$moreinfo = $_POST['moreinfo'];
$location_id = $_POST['location_id'];
	

$query="INSERT INTO packages (package_name, duration, startingprice, feature, overview, overviewpic, overviewpic2, brochurepic, includes, doesnotinclude, price_layout, price_notes, saleitem, longterm, moredetails, morecities, moreinfo, location_id)

VALUES ('$package_name', '$duration', '$startingprice', '$feature', '$overview', '$overviewpic', '$overviewpic2', '$brochurepic', '$includes', '$doesnotinclude', '$price_layout', '$price_notes', '$saleitem', '$longterm', '$moredetails', '$morecities', '$moreinfo', '$location_id') ";


echo "<p>The package ".$package_name." was successfully added.  Click <a href=\"admin_addpackage.php\">here</a> to add another package.";
   
 mysql_query($query) or die("MySQL error - ".mysql_errno()." - ".mysql_error());  





  

?>
</div>


</div>


</body>

</html>