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>