FYI:
for download I am doing this:
$result = MySQLQuery("SELECT * FROM songs WHERE id=$id ORDER BY title ASC", $QueryError_Email, $QueryError_Browser);
if(mysql_num_rows($result))
{
while($row = mysql_fetch_array($result))
{
$song=@mysql_result($result, 0, "file");
ob_end_clean();
header("Content-Disposition: attachment; filename=".$row["filename"]."");
header("Content-type: ".$row["filetype"]."");
echo $song;
}
}
For playback I am doing this:
$result = MySQLQuery("SELECT * FROM songs WHERE id=$id ORDER BY title ASC", $QueryError_Email, $QueryError_Browser);
if(mysql_num_rows($result))
{
while($row = mysql_fetch_array($result))
{
$song=@mysql_result($result, 0, "file");
ob_end_clean();
header("Content-Disposition: inline; filename=".$row["filename"]."");
header("Content-type: ".$row["filetype"]."");
echo $song;
}
}
I have done this before with images, documents and such, but never multimedia. Please help...