-3

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;
}

1 Answers1

1

You have to set the upload_max_filesize and post_max_size for PHP accordingly, either in your php.ini or .htaccess file.

Change the maximum upload file size

https://www.drupal.org/docs/7/managing-site-performance-and-scalability/increase-upload-size-in-your-phpini

Andres S
  • 1,168
  • 7
  • 11