Hey,
im trying to make a video site like YouTube but for webmasters.
Now i have created the form to upload the video to the server but when i click onto a file, It only displays the files name? and not the actual thing that whats in the file.
im trying to make a video site like YouTube but for webmasters.
Now i have created the form to upload the video to the server but when i click onto a file, It only displays the files name? and not the actual thing that whats in the file.
[code<?php
//start the session for the user
session_start();
//we need to connect to our database first
$connect = mysql_connect ("localhost","root","") or die ("There was a probablem connecting to the server");
$select = mysql_select_db ("pph");
$query = mysql_query ("SELECT * FROM videos");
$username = $_SESSION['username'];
$posttitle = $_POST['vtitle'];
$postgat = $_POST['gatagory'];
$postvid = $_POST['upload'];
$postfile = $_POST['File'];
if ($postgat == false)
die ("You Must Apply A Gatagory All Fields Cannot Also Be Blank!");
else
if ($postvid == 5)
die ("You Apply A Video");
$query = $query = mysql_query("INSERT INTO videos (username, title, video, Gatagory)
VALUES ('$username', '$posttitle', '$postfile', '$postgat')") or die ("There was a probablem processing the query");
echo ("Your Video Has Been Uploaded To The Server Successfully");
?>][/code]







