https://github.com/007tickooayush/php_upload_vid
Video uploading project made using php and phpadmin local database.
https://github.com/007tickooayush/php_upload_vid
file-uploading mysql php video
Last synced: about 2 months ago
JSON representation
Video uploading project made using php and phpadmin local database.
- Host: GitHub
- URL: https://github.com/007tickooayush/php_upload_vid
- Owner: 007tickooayush
- Created: 2021-05-04T09:29:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-04T14:31:22.000Z (about 4 years ago)
- Last Synced: 2025-02-01T01:36:59.569Z (4 months ago)
- Topics: file-uploading, mysql, php, video
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/007tickooayush/PHP_upload_vid/blob/master/index.php) is used to display all the videos that were uploaded.
Then for uploading the video [upload.php](https://github.com/007tickooayush/PHP_upload_vid/blob/master/upload.php) is used in which all the videos are uploaded to the database.## MYSQL integration and commands
### PHP integration:
```php
$conn = mysqli_connect("localhost","root","","upload_video_db") ;
```for uploading (inserting):
```php
$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:
```php
$q = "SELECT * FROM video";$query = mysqli_query($conn, $q);
```