我想显示存储在数据库中的youtube链接并调用该链接但是它不能
<div class="divideo">
<iframe width="560" height="315" src="<?php echo $link; ?>" frameborder="0" allowfullscreen></iframe>
</div>
但是YouTube无法连接
<div class="divideo">
<iframe width="560" height="315" src="<?php echo base_url(); ?>/path/<?php echo $link ?>" frameborder="0" allowfullscreen></iframe>
</div>
如果视频链接在你的服务器上,你应该给出视频链接的正确路径,如果你使用外部源,那么在src标签中使用正确的链接。