session_cache_limiter('private, must-revalidate'); session_start(); include"../include/conn.php"; $userId=$_SESSION["userId"]; $loginid=$_SESSION["loginid"]; if(!isset($userId)) // header("Location: ../profile/newaccount.php?a=displayLogin"); { header("Location: ../profile/newaccount.php?a=displayLogin"); ?> } $display_sql= "select count(*) as COUNT from CSS_APP_GENERAL where CSS_APPLICANT_ID=$userId"; $rpos=OCIParse($conn,$display_sql); OCIExecute($rpos); OCIFetchInto($rpos,$disarr,OCI_ASSOC); $iocoount=$disarr["COUNT"]; if($iocoount==0) header("Location: ../profile/applicationdetail.php?a=Add&aid=$userId"); ?>
if(count($_POST)){ foreach ($_POST as $key => $value) { $$key = $value; } } $a=$_REQUEST["a"]; //echo $a; switch (@$a) { case "Save & add another activity": insert_data($conn,1); break; case "Save & move to next section": //insert_data($conn,2); ?> break; default: displayform(); } function displayform() { global $conn,$temp, $userId; $limit = "select count(*) as CNT from CSS_APP_EXTRA_CURRICULUM where css_applicant_id=$userId"; $rsedu = OCIParse($conn,$limit); OCIExecute($rsedu); OCIFetchInto($rsedu,$rsedu_arr,OCI_ASSOC); if($rsedu_arr["CNT"]<=2){ ?> } ?>| include("../include/top.php"); ?> | ||||
|
||||