php - How to fetch a video from db in codeigniter -


i'am trying code

<video width="320" height="240" controls>    <source src="<?php echo 'resource/video/';  echo $image; ?>" type="video/mp4">  <source src="<?php echo 'resource/video/';  echo $image; ?>" type="video/ogg">    </video> 

you can use base_url() this:

<video width="320" height="240" controls>                 <source src="<?php echo base_url('resource/video/'.$image); ?>" type="video/mp4">              <source src="<?php echo base_url('resource/video/'.$image);   ?>" type="video/ogg"> 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -