title: How to display image, video and audio from db to web page as an output?
body: <p>I don't know of this is possible but I am outputting image, audio and video files from my db using their directory and filenames. For example in db:</p>
  
  <pre><code>Image:                    Audio:                           Video:
  
  ImageFiles/tulips.png     AudioFiles/LadyintheNight.mp3    VideoFiles/training.mpeg
  </code></pre>
  
  <p>Below are the variables that each value from the db are stored in and outputted:</p>
  
  <pre><code>echo $dbImage;
  echo $dbAudio;
  echo $dbVideo;
  </code></pre>
  
  <p>So the output is simply:</p>
  
  <pre><code>ImageFiles/tulips.png 
  AudioFiles/LadyintheNight.mp3
  VideoFiles/training.mpeg
  </code></pre>
  
  <p>But I want to do 2 things with these strings:</p>
  
  <ul>
  <li><p>If I echo each value as a hyperlink, is there a way I can click on one of the links and either display the image, a player playing the audio or a player plaving the video in a separate page?</p></li>
  <li><p>If I echo <code>$dbImage</code> as an image tag value, it will display the url as an image. My question is though how can I display an audio or a video player so the user can see the audio/video and play it?</p></li>
  </ul>