Hi!
I have videos that are being drawn from a db file and displayed on my site via a page called video.php. In this page, I have specified that if the db file entry that video.php is looking says mega then it shows a certain vid. If it has .flv, it shows a different one. If it has vureel, it shows a different one.
Anyway, the problem is that whenever a page loads that has mega specified, it loads the coresponding video ok, but it also tries to load another vid on the same page like it has .flv. This only happens with the mega videos, not with flvs or vureel vids.
It is kind of hard to explain, you can see what the problem is
here
Here is the block of code that does the video stuff:
Code:
if(strstr($line,"mega")) {
echo"
<object width=\"400\" height=\"300\"><param name=\"movie\" value=\"$part1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\"$part1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" width=\"400\" height=\"300\"></embed></object>
";
}
if(strstr($line,"vureel")) {
echo"
<iframe style='overflow: hidden; border: 0; width: 550px; height: 410px' src=\"$part1\" scrolling='yes'></iframe>
";
}
if (strstr($line,".flv")) {
echo"
<a
href=\"$part1\"
style=\"display:block;width:400px;height:300px\"
id=\"player\"><img src=\"housemd.jpg\"/>
</a>
<script language=\"JavaScript\">
flowplayer(\"player\", \"http://www.housemdvideos.com/flowplayer/flowplayer-3.0.0-rc3.swf\");
</script>
";
}
}
I am fairly new at mysql, so any help would be appreciated!
Thanks so much!