please how can i echo description of the video in my below code. The code is only displaying video no description please assist thanks am not a php expert. Below is my display.php file
<?php
include("config.php");
?>
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="videoal">
<?php
$fetchVideos = mysqli_query($con, "SELECT location,description FROM videos ORDER BY id DESC");
while($row = mysqli_fetch_assoc($fetchVideos)) {
?>
<div class="video">
<video controls>
<source src="<?php echo $row['location'];?>" type="video/mp4">
<meta content="<?php echo $row['description'];?>" />
</video>
</div>
<?php
}
?>
</div>
</body>
</html>
This code here is for my style.css i wish you assist me please. i want my to display video the a description below it. Thanks. my style.css
#videoal {
}
#videoal div.video {
display: inline-block;
zoom: 1;
*display: inline;
width: 200px;
height: 200px;
margin: 0 10px 10px 0;
}
#videoal div.video video {
width: 200px;
height: 200px;
}