embedded media from DB
| From: | Brad Wright | Date: | Thu, 13 Jun 2002 06:58:17 +0000 |
| Subject: | embedded media from DB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101910@lists.php.net to get a copy of this message | ||
Hi all..
well i got the wav files from the mysql database and can get them to play in
a web page using the following code:
************
IF ($row = mysql_fetch_array($result)) {
$data = $row["wavFile"];
$name = $row["wav FileName"];
$size = $row["wav FileSize"];
$type = $row["wav FileType"];
header("Content-type: $type");
header("Content-length: $size");
/header("Content-Disposition: attachment; filename=$name");
header("Content-Description: PHP Generated Data");
echo $data;
*************
BUt the problem I am having is that this code gives me a blank age with a
Quicktime control bar in the middle of it. The wav file plays fine. Any
other htm underneath this php script is ignored.
How can i get the (html) code following this to be output to the webpage????
All my tags seem correct (ie the <?PHP and ?> tags etc are done correctly).
Any help is greatly appreciated
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
--------------------------------------------------------------------------
In wine there is truth, in beer there is strenght, in water there are
bacteria