Hi,
I have a table "Student Course Details" and "Student Personal Information". The Table "Student Personal Information" contains State and City information of the user.
Now i have formatted the Printer Friendly Page of "Student Course Details" which also displays the City and State from the "Student Personal Information" Table.
The Page displays like this:
----------------------------------------------------------------
Student Details:
Name: chingupt
Age: xxx
City: aaa
State: bbb
---
---
---
------------------------------------------------------------------
Now i want that if the "City" is not populated for a student in the table, this particular row should not get displayed instead of showing a blank field.
The code of the "Printer Page" which displays the City is as follows:
<TR>
<TD class=shade width="20%"><STRONG>City:</STRONG></TD>
<TD
{$Perm_Addr_City_style}>{$Perm_Addr_City_value} </TD></TR>
<TR>
I tried formatting it to
if({$Perm_Addr_City_value})
{
echo "<TR>";
echo "<TD class=shade width=\"20%\"><STRONG>City:</STRONG></TD>";
echo "<TD {$Perm_Addr_City_style}>{$Perm_Addr_City_value} </TD></TR>";
echo "<TR>";
}
but it does not work.
I also tried the php code snippet but it did not work.
Ill be very grateful to anyone who can help me out in this.
Regards