On 07/09/13 15:25, Joe Bordes wrote: > I think it is FALSE, not null Thanks Joe, Think this should do it then > do { > $result = $this->set_uuid($data->getId()); > } while (!$result); the set_uuid() function returns the result of the $adb->pquery() call. Cheers Al -- Libertus Solutions http://www.libertus.co.uk