setQuery("SELECT * FROM trfstandards WHERE trfstandards.idtrfdetails='$idtrf'"); $fieldsstdcheck->execute(); ?> atEnd()) { $wa_startindex = $fieldsstdcheck->Index; ?> getColumnVal("idprotectioncategory")=='') || (($fieldsstdcheck->getColumnVal("iddpicategory")==''))) { $alertyes="YES"; $_SESSION["alertstd"]=$alertyes; header("location: standardstep.php?idtrf=$idtrf"); } ?> moveNext(); } $fieldsstdcheck->moveFirst(); //return RS to first record unset($wa_startindex); unset($wa_repeatcount); ?>