clivehenderson
IS-IT--Management
Hi
I've just managed to create a joined recordset with a mixture of values and nulls in the recordset fields.
This was my intention and I now need to be able to test if field has a null value null value for example
if (@$row_rsCourt1['bookingID'] = null) {
?>
<span class="courtFree">FREE</span>
<?php
// else Conditional region1
} else { ?>
<span class="courtBooked">BOOKED</span>
<?php }
The 'else' part of the statement is always executed.
I've tried concatenating the nullfield with a letter but it still returns a null value
Not sure what else to do
Appreciate any help on this
kind regards
Clive
I've just managed to create a joined recordset with a mixture of values and nulls in the recordset fields.
This was my intention and I now need to be able to test if field has a null value null value for example
if (@$row_rsCourt1['bookingID'] = null) {
?>
<span class="courtFree">FREE</span>
<?php
// else Conditional region1
} else { ?>
<span class="courtBooked">BOOKED</span>
<?php }
The 'else' part of the statement is always executed.
I've tried concatenating the nullfield with a letter but it still returns a null value
Not sure what else to do
Appreciate any help on this
kind regards
Clive