Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
var fo = new SWFObject("flowplayer.swf", "v-mania", "400", "320", "9", "#ffffff", true);
fo.addParam("AllowScriptAccess", "never");
fo.addParam("allowFullScreen", "true");
fo.addVariable("config", "{ showPlayListButtons: true, playList: [ { url: '<?="$picture"; ?>', overlayId: 'play' }, { url: '<?="$url";?>' }, { overlayId: 'play' } ], loop: true, initialScale: 'orig', autoBuffering: true, useNativeFullScreen: true }");
lub4o каза:Здравейте, пиша един код и има dobavi.php <- Файла от който се добавя видеото и index.php, където ще извежда видеото, използвам Flowplayer как мога да направя качените клипове да ги искарва с Flowplayer ?
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
include 'config.php';
$title = $_POST['title'];
$opisanie = $_POST['opisanie'];
$file = $_POST['file'];
if($_POST['Submit']){
if($_GET['do'] == "up") {
@move_uploaded_file($_FILES['file']["tmp_name"], "files/" . $_FILES['file']['name']);
$sql = mysql_query("INSERT INTO video (title,opisanie,video) VALUES ('$title','$opisanie','$file')") or die (mysql_error());
}
}else{
?>
<form action="?do=up" method="post" enctype="multipart/form-data" name="form1" id="form1"><br />
<label>
Заглавие: <Br /><input type="text" name="title" /><br />
Описание: <br /><input type="text" name="opisanie" /><br />
<input type="file" name="file" />
</label>
<br />
<label>
<input type="submit" name="Submit" value="Качване" />
</label>
</form>
<?php } ?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
include 'config.php';
$title = $_POST['title'];
$opisanie = $_POST['opisanie'];
$file = $_POST['file'];
if($_POST['Submit']){
if($_GET['do'] == "up") {
$sql = mysql_query("INSERT INTO video (id,title,opisanie,video) VALUES ('','$title','$opisanie','$file')") or die (mysql_error());
$last_id=mysql_insert_id();
@move_uploaded_file($_FILES['file']["tmp_name"], "files/" . $last_id.'.flv');
}
}else{
?>
<form action="?do=up" method="post" enctype="multipart/form-data" name="form1" id="form1"><br />
<label>
Заглавие: <Br /><input type="text" name="title" /><br />
Описание: <br /><input type="text" name="opisanie" /><br />
<input type="file" name="file" />
</label>
<br />
<label>
<input type="submit" name="Submit" value="Качване" />
</label>
</form>
<?php } ?>
$sql = mysql_queyr("SELECT * FROM video ORDER BY id DESC") or die (mysql_error());
while($row = mysql_fetch_assoc($sql){
echo "$row[title
$row[opisanie]
$row[kod]
echo '<a href='vij.php?id=$row[id]'>Виж цялото</a>
";
}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
include 'config.php';
$title = $_POST['title'];
$opisanie = $_POST['opisanie'];
$file = $_POST['file'];
if($_POST['Submit']){
if($_GET['do'] == "up") {
$sql = mysql_query("INSERT INTO video (id,title,opisanie,video) VALUES ('','$title','$opisanie','$file')") or die (mysql_error());
$last_id=mysql_insert_id();
@move_uploaded_file($_FILES['file']["tmp_name"], "files/" . $last_id.'.flv');
}
}else{
?>
<form action="?do=up" method="post" enctype="multipart/form-data" name="form1" id="form1"><br />
<label>
Заглавие: <Br /><input type="text" name="title" /><br />
Описание: <br /><input type="text" name="opisanie" /><br />
<input type="file" name="file" />
</label>
<br />
<label>
<input type="submit" name="Submit" value="Качване" />
</label>
</form>
<?php } ?>
$sql = mysql_queyr("SELECT * FROM video ORDER BY id DESC") or die (mysql_error());
while($row = mysql_fetch_assoc($sql){
echo "$row[title
$row[opisanie]
$row[kod]
echo '<a href='vij.php?id=$row[id]'>Виж цялото</a>
";
}
<?php
$id = $_GET['id']; и кода надоло..
?>
<?php
include 'config.php';
$id = $_GET['id'];
if($id){
$sql = mysql_query("SELECT * FROM video WHERE id='$id'") or die (mysql_error());
while($row = mysql_fetch_assoc($sql)){
echo "
Заглавие: $row[title] <Br />
Описание: $row[opisanie]<Br />
Видео: $row[text]<Br />
Автор: $row[avtor]<Br />
Дата: $row[date]<Br />
";
}
}else{
echo 'Избери новина';
}
?>
lub4o каза:Ето го целия vij.php
Код:<?php include 'config.php'; $id = $_GET['id']; if($id){ $sql = mysql_query("SELECT * FROM video WHERE id='$id'") or die (mysql_error()); while($row = mysql_fetch_assoc($sql)){ echo " Заглавие: $row[title] <Br /> Описание: $row[opisanie]<Br /> Видео: $row[text]<Br /> Автор: $row[avtor]<Br /> Дата: $row[date]<Br /> "; } }else{ echo 'Избери новина'; } ?>
Това е файла vij.php