<?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);



$press_headline = $_POST['press_headline'];
$press_details = $_POST['press_details'];
$press_pic = $_POST['press_pic'];
$press_date = $_POST['press_date'];
$press_source = $_POST['press_source'];

	

$query="INSERT INTO press (press_headline, press_date, press_source, press_details, press_pic)

VALUES ('$press_headline', '$press_date', '$press_source', '$press_details', '$press_pic')";


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

?>



</div>


</div>


</body>

</html>