Skip to content

Video uploading project made using php and phpadmin local database.

Notifications You must be signed in to change notification settings

007tickooayush/PHP_upload_vid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP_upload_vid

Functioning:

The project uses basic php working integrated with MySQL to upload files on a server alloted by the developer. At first the homepage index.php is used to display all the videos that were uploaded. Then for uploading the video upload.php is used in which all the videos are uploaded to the database.

MYSQL integration and commands

PHP integration:

$conn = mysqli_connect("localhost","root","","upload_video_db") ;

for uploading (inserting):

$q = "INSERT into video (name) VALUES ('$file_name')";

if (mysqli_query($conn, $q)) {
            $success = "Video uploaded.";
        } else
            $failed = "upload failed";

for viewing files on page:

$q = "SELECT * FROM video";

$query = mysqli_query($conn, $q);

About

Video uploading project made using php and phpadmin local database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages