-1

Here is the code, it's not displaying the embed part, why is it not displaying?

    <div id="content">
<?php
    $video = $_GET['video'];
    $data_id = $_GET['id'];
    $name = $_GET['name'];
?>
<a href="videos/<?php echo $video; ?>"   
style="display:block;width:100%;height:400px;"   
id="player"></a>
<br>
    </div>
    <div id="content">
    <!--This is where the embed code will display the video-->
    <a href="videos/<?php echo $video; ?>">
    </div>
user3430617
  • 21
  • 1
  • 3

1 Answers1

0

You're using the PHP code with the <a> tag improperly. From the user Strae in this SO question:

echo '<a href="' . $folder_path . '">Link text</a>';

Please note that you must use the path relative to your domain and, if the folder path is outside the public htdocs directory, it will not work.

Community
  • 1
  • 1
TylerH
  • 20,799
  • 66
  • 75
  • 101