I have a page that displays various fields from a mysql_query. I only want to display the following field/row when the value is available.
$web = $row['Website'];
<?php
if ($web = NULL)
{?>
<!-- DO NOTHING -->
<?php
}
else
{?>
<tr>
<td valign='top' colspan='3' align='center'><DIV CLASS='standings_title'><?php echo $web ?></div></td>
</tr>
<?php
}
?>
Hopefully someone can tell me what I am doing wrong.
1 Answer