setQuery("SELECT * FROM `trf-details` WHERE `trf-details`.idtrfdetails='$idtrf' AND `trf-details`.idcompany='$idcompany'"); $securitystep->execute(); if (empty($securitystep->getColumnVal("idtrfdetails"))) { header("location: notauthorized.php"); } } ?>