<html>
<head>
<link rel="stylesheet" href="sft.css">
<title>Press & Release</title>
</head>
<body>

<?php
$mediaID = $_GET["id"];

include "conn.php";

$query = "select mediaName, mediaDescrip, mediaURL, mediaID from media_media where mediaID='$mediaID'";

$result = mysql_query($query) or die (mysql_error());

if ($row = mysql_fetch_array($result))
{
	$mediaName = $row[0];
	$mediaDescrip = $row[1];
	$mediaURL = $row[2];
	$mediaID = $row[3];
	
	$len = strlen($mediaDescrip);
	
	echo "<table width=95% border=0 cellspacing=0 cellpadding=3 align=center>
	    <tr><td width=100%>";?><table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td><img src="img/logo.jpg" width=96 height=61></td><td><form action="javascript: window.print(1);"><input type="image" src="img/print.jpg" value="Print"></td></form><td><form action="javascript: window.close();"><input type="image" src="img/close.jpg" value="Close"></td></form></tr></table><?php echo "
	    <tr><td align=\"center\" valign=\"top\"><img src=\"press/$mediaURL\"></td></tr>";
	    //<tr><td align=\"center\">$mediaName</td></tr>
	echo "<tr><td>$mediaDescrip</td></tr></table>";

}
?>
</body>
</html>