Gagal upload video

Mohon Pencerahannya

<?php
	if(isset($_POST['submit']))
	{
		$koneksi = mysqli_connect("localhost", "root", "", "video");
		if (mysqli_connect_errno()){
			echo "Koneksi ke Database GAGAL !!!" . mysqli_connect_error();
		}

		$kode		= $_POST['kode'];
		$judul		= $_POST['judul'];
		$deskripsi	= $_POST['deskripsi'];
		$link		= $_POST['link'];
		$kategori  	= $_POST['kategori'];
		$sub	   	= $_POST['sub'];
		$durasi	   	= $_POST['durasi'];
		$user	   	= $_POST['user'];
		$hari	   	= $_POST['hari'];
		$tanggal   	= $_POST['tanggal'];
		$jam	   	= $_POST['jam'];
		$status	   	= $_POST['status'];

		mysqli_query($koneksi,"INSERT INTO `content` (`kode`, `judul`, `deskripsi`, `link`, `kategori`, `sub`, `durasi`, `user`, `hari`, `tanggal`, `jam`, `status`) VALUES (`$kode`, `$judul`, `$deskripsi`, `$link`, `$kategori`, `$sub`, `$durasi`, `$user`, `$hari`, `$tanggal`, `$jam`, `$status`)")
			 or die ("Gagal Upload Video");
		header("location: index.php");
		mysqli_close($koneksi);
	}
?>

avatar ayenkmarley
@ayenkmarley

2 Kontribusi 0 Poin

Dipost 4 tahun yang lalu

Tanggapan

ada informasi error nya ga ?

1 Jawaban:

<pre> &lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Administrator - Video&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &lt;script type="application/x-javascript"&gt; addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } &lt;/script&gt; &lt;!-- Bootstrap Core CSS --&gt; &lt;link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' /&gt; &lt;!-- Custom CSS --&gt; &lt;link href="css/style.css" rel='stylesheet' type='text/css' /&gt; &lt;!----webfonts---&gt; &lt;link href='//fonts.googleapis.com/css?family=Cabin:400,400italic,500,500italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'&gt; &lt;!---//webfonts---&gt; &lt;!-- Meters graphs --&gt; &lt;script src="js/jquery-1.10.2.min.js"&gt;&lt;/script&gt; &lt;!-- Placed js at the end of the document so the pages load faster --&gt; &lt;/head&gt; &lt;body height="100%"&gt; &lt;section style="min-height: 500px; max-height: 2000px;"&gt; &lt;!-- header-starts --&gt; &lt;div class="header-section"&gt; &lt;h2 align="center" style="padding-top: 10px"&gt;&lt;b&gt;UPLOAD VIDEO&lt;/b&gt;&lt;/h2&gt; &lt;/div&gt; &lt;!-- //header-ends --&gt; &lt;div id="page-wrapper"&gt; &lt;div class="graphs"&gt; &lt;div class="panel-body panel-body-inputin"&gt; &lt;form class="form-vertical" action="upload.php" method="POST"&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Kode Video &lt;/span&gt; &lt;input id="kode" name="kode" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Judul Video &lt;/span&gt; &lt;input id="judul" name="judul" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Link URL Video &lt;/span&gt; &lt;input id="link" name="link" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Kategori Video &lt;/span&gt; &lt;input id="kategori" name="kategori" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Sub Kategori &lt;/span&gt; &lt;input id="sub" name="sub" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Durasi Video &lt;/span&gt; &lt;input id="durasi" name="durasi" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Pengupload &lt;/span&gt; &lt;input id="user" name="user" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Pada Hari &lt;/span&gt; &lt;input id="hari" name="hari" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Pada Tanggal &lt;/span&gt; &lt;input id="tanggal" name="tanggal" type="date" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Pada Jam &lt;/span&gt; &lt;input id="jam" name="jam" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Status Video &lt;/span&gt; &lt;input id="status" name="status" type="text" class="form-control1" required&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-md-4"&gt; &lt;span class="input-group-addon"&gt; Deskripsi &lt;/span&gt; &lt;textarea id="deskripsi" name="deskripsi" type="text" class="form-control1" required&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group" style="float : right;"&gt; &lt;div class="col-md-12"&gt; &lt;button type="submit" class="btn-primary btn" name="submit" id="submit"&gt;Submit&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&gt;

&lt;script src="js/jquery.nicescroll.js"&gt;&lt;/script&gt; &lt;script src="js/scripts.js"&gt;&lt;/script&gt; &lt;!-- Bootstrap Core JavaScript --&gt; &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </pre>

avatar ayenkmarley
@ayenkmarley

2 Kontribusi 0 Poin

Dipost 4 tahun yang lalu

Login untuk ikut Jawaban