insert an image in table

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
podarum
Forum Commoner
Posts: 51
Joined: Mon Jun 15, 2009 1:36 pm

insert an image in table

Post by podarum »

Hi,

I'm trying to insert a picture instead of the word "TITLE", but something's not working out.. any help? I have the word TITLE in a fancier .png format. Thanks.

Code: Select all

 
<?php
echo "<table cellspacing='2' cellpadding='3%' border='2' width='80%' bordercolor='#995961' ALIGN=CENTER BGCOLOR= '#f6faff'>";
print "<br />";
print"
<tr><th colspan=5 align=center> <font size=5 color=maroon>TITLE</th></tr></font>
<TR><TH width='80%'rowspan='2'><TH colspan='3'>Effect1<TH rowspan='2' width ='5%'>Effect2
<TR><TH width ='5%'>Negative<TH width ='5%'>Neutral<TH width ='5%'>Positive</th></tr>";?>
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: insert an image in table

Post by akuji36 »

mmmm...I see some broken table code in your example but no image.

And is this a php file with table? If so
check your php and watch for semicolons.

Where's the image tag = <img src="">

and what's the name of your image?

Code: Select all

<table align=center>
<tr align=center>
<td><img src="my_cool_image.jpg"></td>
</tr>
</table>

thanks

Rod
webpagesofease.com
Post Reply