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

Php 如何将动态图像添加到td背景图像?,php,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

在这段代码中,我想将$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>

好了:

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

我不确定我们是否完全理解您想要实现的目标。任何地方都没有“$image”。。。也许一些示例php代码和您正在尝试做的事情,以及/或者它抛出的错误会对我们有所帮助。伙计…我想了解如何在html标记之间添加一些变量的逻辑。我以虚拟代码为例