hi all,
iam trying to retrieve video file from database bit its nat working here is my code

<?	
include_once('functions.php');
include_once('conn.php');
if(!empty($_GET['pid']))
{
	 $pqry="SELECT * FROM vdo_cat where c_id='".$_GET['pid']."'";
	$pres=mysql_query($pqry) or die(mysql_error());
	$prow=mysql_fetch_array($pres);
	$len=strrpos($prow['videos'],'.');
	$vtype=substr($prow['videos'],$len+1,5);
	$vname=($prow['videos']);
	if(isset($vtype))
	{
	


?>
<link href="site.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#83CBED">
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center" valign="middle"><object id="MediaPlayer" border="2px" style="border-color:#666666 " width=400 height=350 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
                                <param name="filename" value="<?=$vname?>">
                                <param name='BufferingTime' value='5'>
                                <param name='DisplayMode' value='0'>
                                <param name='PreBuffer' value='True'>
                                <param name="Showcontrols" value="True">
                                <param name="autoStart" value="True">
                                <param name="menubar" value="True">
                                <param name="ShowStatusBar" value="True">
                                <param name="EnableContextMenu" value="False">
                                <param name="quality" value="high">
                                <param name="AutoRewind" value="False">
                                <embed type="application/x-mplayer2" src="<?=$vname?>" id="eMediaPlayer1" name="eMediaPlayer1" width=450 height=350></embed>
                              </object></td>
      </tr>
      <tr>
        <td></td><? } }?>
      </tr>
      <tr>
        <td align="center" valign="middle"><a href="#" class="orngsml" onClick="javascript:window.close();" ><strong>Close</strong></a></td>
      </tr>
    </table></td>
  </tr>
</table>

please help me this is 3rd time iam posting in this video gallery i tried this for 2 days but not able to get it thank u in advance

Recommended Answers

All 3 Replies

hi shanthi,
thank u, my problem is solved. thank a lot

Always welcome ............

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.