I have some date fields which in some records will have NULL value.
I am trying to show nothing in the HTML display.
IF
<?
$date3=$myrow[when3'];
?>
<p><?=$date3?>< p>
The html display is 0000-00-00 if there is no date value in the db table. I
am trying to have nothing displayed for $date3
IF
<?
$date3 = $myrow['when3'];
if($date3="0000-00-00"){$date3=""; }
else {$date3=$date3; }
?>
<p><?=$date3?>< p>
Nothing is displayed in the page even if a date value has been inserted into
the db table
How can I achieve this?
Louise
I am trying to show nothing in the HTML display.
IF
<?
$date3=$myrow[when3'];
?>
<p><?=$date3?>< p>
The html display is 0000-00-00 if there is no date value in the db table. I
am trying to have nothing displayed for $date3
IF
<?
$date3 = $myrow['when3'];
if($date3="0000-00-00"){$date3=""; }
else {$date3=$date3; }
?>
<p><?=$date3?>< p>
Nothing is displayed in the page even if a date value has been inserted into
the db table
How can I achieve this?
Louise
Comment