echo's not working in table
Posted: Sat Feb 28, 2009 2:07 pm
Could someone please tell me what I am doing wrong in my coding? I am trying to GET variable that is passed from previous page, that works fine, I am sure. Where I have a problem is when I try to echo my variables in different TD's in in a table. I am sure it is my syntax, but I can not figure out what i am doing wrong. Can someone please help em out here?
Notice the echo's on lines 11 and 18.
Thank you!
Code: Select all
<table style="width: 100%" cellspacing="0" cellpadding="0">
<?php
$item_short_desc = $_GET['item_short_desc'];
$item_img = $_GET['item_img'];
?>
<TABLE WIDTH="100%" ALLIGN="left" BORDER=0 CELLPADDING=4>
<TR>
<TH ROWSPAN=3> echo <IMG SRC=\includes/img_resize3.php?src=$sitelocation$item_img&width=500&height=500&qua=50\" BORDER=\"0\"></TH>
<TD> </TD> <TD>1493</TD>
</TR>
<TR>
<TD> </TD> <TD>3829</TD>
</TR>
<TR>
<TD> </TD> <TD>echo $item_short_desc</TD>
</TR>
</TABLE>Thank you!