Re: Interbase Null Fields

From: Date: Wed, 08 May 2002 19:40:19 +0000
Subject: Re: Interbase Null Fields
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19058@lists.php.net to get a copy of this message
Hi, this misbehavior was fixed in the php 4.1.0 version of the interbase module. So you should update your environment if possible. If an update is not an option, you have to check the availability of the values, e.g. if (isset($register->FIELD1)) { echo $register->FIELD1; } else { echo 'NULL'; } Lutz benji@autec.es (Benj) writes: > I have a field in a IB table that have a field that is null in some cases. > If I check for the value of that field via the record set wich I obtained > with function > $register=ibase_fetch_object(...); > when i do: > $register->FIELD1 > If FIELD1 is Null for the actual register i get the next warning: > Warning: Undefined property: FIELD1 in C:\path\file.php on line XX > > Is there any way to check a field that some times contain null values > without getting this warning message? > > Thx > --------------------------------------- > Benjamí Tauler > "Everyone should carefully observe which way his heart draws him, and then > choose that way with all his strength." > - Hasidic Saying

« previous php.db (#19058) next »