Display alternate text if recordset contents is NULL
I have a record set using the MySQLi server behaviours. Where the contents of the record is NULL then I would like to display some alternate text.
I have tried using ISSET to test if the value exists, but this methods fails as I can't use ISSET with an object.
if ISSET($rsTest->getColumnVal("Collection")) { echo.....
I can do this as a two stage process - setting a variable to be equal to the field in the record and then testing if the variable is > 0.
Is there an better or more elegant way of achieving this ?
Cheers, Dave