|
|
|
IZBERITE VIDEO GALERIJO!
$CS=mysql_query("select * from video_stran order by Datum desc");
while ($C=mysql_fetch_array($CS)) {
echo IzpisDatum($C['Datum'])." ".$C['Naslov']." ".$C['Vsebina']."
";
}
?>
|
|
|
|
|
|
if ($_GET['ContentID']) {
$Galerija=mysql_fetch_array(mysql_query("select * from video_stran where ID='".$_GET['ContentID']."'"));
echo "Izbrani video posnetek: ".$Galerija['Naslov']." - ".IzpisDatum($Galerija['Datum'])."
".$Galerija['Vsebina']."
";
}
$Temp=$Galerija['Video'];
$Temp=substr($Temp,strpos($Temp,'width="350"')+7);
$Sirina=substr($Temp,0,strpos($Temp,'"'));
$Temp=substr($Temp,strpos($Temp,'height="287"')+8);
$Visina=substr($Temp,0,strpos($Temp,'"'));
$Galerija['Video']=str_replace('width="350"','width="350"',$Galerija['Video']);
$Galerija['Video']=str_replace('height="287"','height="287"',$Galerija['Video']);
echo $Galerija['Video'];
?>
|
|