if($_GET["startdate"]=="" and $_GET["job_status"]=="" and $_GET["enddate"]=="" and $_GET["ref_dep_id"]=="" and $_GET["ref_area_id"]=="" and $_GET["ref_type_id"]==""){
echo "Select Search";
} else {
$objDB = mysql_select_db("$dbname");
$strSQL = "SELECT * FROM job
WHERE (job_status LIKE '".$_GET["job_status"]."' or ref_dep_id LIKE '".$_GET["ref_dep_id"]."'
or ref_area_id LIKE '".$_GET["ref_area_id"]."' or ref_type_id LIKE '".$_GET["ref_type_id"]."'
or job_date between '".$_GET["startdate"]."' and '".$_GET["enddate"]."')";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$Num_Rows = mysql_num_rows($objQuery);