On 5/19/07, Luke Mackenzie <[EMAIL PROTECTED]> wrote:

 I found a slightly more elegant way of doing this:

 $allFields = $result->getFieldNames();

 if(in_array('news_id',$allFields)){

             echo $result->getFieldValue('news_title').'<br
/>';

         } else {

             //do something else
         }

 Hope that helps someone....

IMO trapping exception is not a hack. But it's what they are there for.

;-)

Reply via email to