session_start(); if(!isset($_SESSION['Unit'])){ header("Location: ../index.php"); } include("../conn.php"); $rs = mysql_query('select * from sub_unitmaster where pno_unit_code = \''.$_REQUEST['id'].'\' order by sub_unit'); ?>
if(mysql_num_rows($rs) > 0) { ?> } else {?> No sub unit defined for this unit. } ?>