hmm.. could something like:
PHP Code:
if(!isset($rsltTEST)) || $rsltTEST === "")
do it ??
I've never interacted with postgresql from PHP, so I'm not sure how the $rsltTEST will be formed, why not try and print it to the screen, so you'll know what to match for ?