how to post video and fetch from database in php

Solutions on MaxInterview for how to post video and fetch from database in php by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to post video and fetch from database in php"
Brandy
19 Apr 2016
1<?php
2include("config.php");
3?>
4<!doctype html>
5<html>
6  <head>
7    <style>
8    video{
9     float: left;
10    }
11    </style>
12  </head>
13  <body>
14    <div>
15 
16     <?php
17     $fetchVideos = mysqli_query($con, "SELECT location FROM videos ORDER BY id DESC");
18     while($row = mysqli_fetch_assoc($fetchVideos)){
19       $location = $row['location'];
20 
21       echo "<div >";
22       echo "<video src='".$location."' controls width='320px' height='200px' >";
23       echo "</div>";
24     }
25     ?>
26 
27    </div>
28
29  </body>
30</html>