2012-01-13 155 views
-1

在这段代码中,我想添加$图像变量到td背景,但我不知道是否将它添加在引号之间没有任何问题..或删除引号..以及如何从YouTube视频中获得它..感谢您的帮助如何将动态图像添加到td背景图片?

<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> 
+0

我不知道,如果我们很明白你要完成的任务。在任何地方都没有“$ image”......也许有些示例php代码和你正在尝试做的事情,或者它抛出的错误会帮助我们。 – Ryan 2012-01-13 20:23:49

+0

男人...我想了解逻辑如何添加一些变量之间的html标签..我把虚拟代码作为例子 – user1080247 2012-01-13 21:01:14

回答

1

你去:

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

谢谢埃里克..这就是我想要的 – user1080247 2012-01-14 07:31:11