如何将动态图像添加到td背景图像?

时间:2012-01-13 19:27:59

标签: php

在这段代码中我想将$ image变量添加到td背景但我不知道是否在引号之间添加它没有任何问题..或删除引号..以及如何从youtube视频中获取它...谢谢帮助

<table width="130" height="97">
<tbody><tr>

<td valign="center" width="130" align="center" background="showvideo.php_files/2_003.jpg" height="97">
<a href="http://www.mysite.com/video/watch.php?VDCID=42608">
<img src="showvideo.php_files/play_arrow.gif" alt=" Theme Song " border="0">
</a>
</td>
</tr>
</tbody></table>

1 个答案:

答案 0 :(得分:1)

你去吧:

    <td valign="center" width="130" align="center" background="<?php echo $image; ?>" height="97"></td>