You Are Here : /var/www/virtual/tvarditsa.org/pages/ |
Current File : /var/www/virtual/tvarditsa.org/pages/video.php |
<?php $db_host="localhost"; $db_user="tvarditsa"; $db_pass="tvarditsa123"; $db_name="tvarditsa"; mysql_connect($db_host, $db_user, $db_pass); mysql_select_db($db_name); mysql_query('SET NAMES cp1251'); $q="SELECT * FROM `video_bg` WHERE 1 and id = '".$_GET['id']."' LIMIT 0 , 1"; $q = mysql_query($q); while ($res=mysql_fetch_array($q)){ echo $res[date] .'<br><b>'. $res[title].'</b><br><br> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="376" id="Untitled-1" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="vplayer.swf?varz='.$res[id].'" /> <param name="varz" value="'.$res[id].'" /><param name="quality" value="high" /><param name="bgcolor" value="#568CB0" /><embed src="vplayer.swf?varz='.$res[id].'" quality="high" bgcolor="#568CB0" width="500" height="376" name="Untitled-1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <br><br><br> '; } #countinc("news","$res[id]"); $q="SELECT id, title, date FROM video_bg WHERE 1 order by id desc LIMIT 0 , 50"; $q = mysql_query($q); echo '<div style="clear: both;"><div style="background-color: #dedede; padding: 4px; margin: 4px;"> Всички клипове</div>'; while ($res=mysql_fetch_array($q)){ echo '<div style="width: 175px; height: 140px; float: left;"><a href="index2.php?lang=bg&page=88&id='.$res[id].'" class="links"><img src="vimg.php?id='.$res[id].'" border="0"></a><br><br><a href="index2.php?lang=bg&page=88&id='.$res[id].'" class="links">'.$res['title'].'</a></div>'; } echo '</div>'; ?>