id {$_GET['standardcodetitle']} {$_GET['protectioncategorytitle']} {$_GET['dpicategorytitle']} "; while($rowquery = mysqli_fetch_assoc($row1)) { $this_pcat = (isset($rowquery['name_protectioncategory']))? $rowquery['name_protectioncategory']: $_GET['pleaseselectstd']; $this_dpcat = (isset($rowquery['value_dpicategory']))? $rowquery['value_dpicategory']: $_GET['pleaseselectstd']; $html .= " {$rowquery['idtrfstandards']} {$rowquery['standardcode']} {$this_pcat} {$this_dpcat} "; } $html .= ""; echo $html; ?>