Could someone direct me to a link or tutorial page or SOMETHING that might be able to help me? I need to pull a filename from the database, but it is to be "hidden" from the viewers. I want to use a button and that button when clicked on is going to go to another page which will be considered a display page. I'd like to get the file to automatically open/play when that button is clicked on. Here is what I've got so far.
<html>
<head>
<title>Eye Contact - Century to Century</title>
<link rel="stylesheet" href="eye01.css" type="text/css" />
</head>
<body>
<form name ="" method = "post" action="">
<?php
print "<table align = 'center' width='50%' border='1' height = '90%'>";
$db = mysql_connect("localhost","root","");
if (!$db)
{
print "error - Could not connect to MySQL";
exit;
}
$er = mysql_select_db("touch_art1");
if(!$er)
{
print "error - Could not select the database";
exit;
}
extract($_POST);
$query = "SELECT date, filename FROM comment WHERE pamapproved = 'y' ORDER BY date";
$result = mysql_query($query);
if(!$result)
{
print "Error on Query";
exit;
}
else
{
print "<tr height = '15%'>";
print "<th class='theader'>Date</th>";
print "<th class='theader'>Filename</th></tr>";
while($column = mysql_fetch_object($result))
{
print "<tr height = '15%'>";
foreach($column as $colval)
{
print "<td class='tdata'>$colval</td>";
}
print "</tr>";
}
print "</table>";
}
mysql_free_result($result);
mysql_close();
?>
Everything here works, but I need to figure out how to get the file to automatically play. Any help would be great.