Click to See Complete Forum and Search --> : show table cell based on value


kproc
11-08-2006, 08:01 PM
Hi

below is code that I'm tryingto set that if the value in the mysql table is set to 0000-00-00 then don't show the row but if the value is not that then show the row

code


<?php if($row_wish_list['occasion_date'] != '0000-00-00'){
echo '<tr>';
echo '<td class="rowLeft style1">Event Date</td>';
echo '<td class="rowRight style1">';
echo $row_wish_list['occasion_date']."</td></tr>";
}
?>

NogDog
11-08-2006, 08:10 PM
And what is it doing or not doing that you don't like? Have you verified what value is actually set in $row_wish_list['occasion_date'] ?

kproc
11-08-2006, 08:14 PM
thank you for pointing that out I had the value set to "". all works well