if clause in ShowInfo ?
Posted: Tue Nov 22, 2005 4:02 pm
can i post an if clause in a ShowInfo ?
the problem is, if i don't post the if clause in the ShowInfo then the image appears on the top of my page and not where i want it to be, how can i solve this?
Code: Select all
$ShowInfo = "<table border=0 align=center width=\"100%\">\n\t<tr>\n\t
<td width=\"60%\" valign=top><font size=3 face=verdana color=black>
<b>$a1[first], $a1[second], $a1[third]</b></font><br>
<font size=2 face=verdana color=black>$a1[fourth]</font></td>\n\t
<td width=\"40%\" valign=top align=center>
<font size=2 face=verdana><B>something<br>
if($a1[condition] == 'y')
{
$ShowInfo .= "<img src=\"imageyouwanttodisplayifconditionismet.gif\" alt=\"Image\"><br>\n";
}
";