Show If
I am having trouble figuring out Show If in PHP
If a field in a Recordset has a value, I want to display a table on my page with the content in it.
Here is what I have, but it doesn't work.
<?php if (!empty($row_news['celebrating']))?>
<?php do { ?>
<table width="280" border="0" cellpadding="8" cellspacing="0" class="announcetable">
<tr>
<td align="left" valign="top" bgcolor="#EEE8DB" class="bodytext"><?php echo $row_news['celebrating']; ?></td>
</tr>
</table>
<?php } // end if ?>
Easy enough to do in ASP, but I don't know the syntax in php.
Any help would be appreciated.


