Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.149.234.78
Current Path : /var/www/html/jobs/src/ |
| Current File : /var/www/html/jobs/src/studResume.php |
<?php
function jobAppDet($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$idFname = $aobj_context->mobj_data["idFname"];
$idMobile = $aobj_context->mobj_data["idMobile"];
$idEmail = $aobj_context->mobj_data["idEmail"];
$filename = $aobj_context->mobj_data["file"];
$fpreferloc = $aobj_context->mobj_data["preferloc"];
$TSR = $aobj_context->mobj_data["TSR"];
// var_dump($idEmail,$idFname,$idMobile);
$strInsertQuery = "insert into jobdet
(fintdate, fcompany, fjobtype, fname, fmobile,femail, frespath,fpreferloc)
values(now(), 'LORDSHIRE','{$TSR}','{$idFname}', '{$idMobile}',
'{$idEmail}', '{$filename}','{$fpreferloc}')";
// var_dump($strInsertQuery);
$boolSaRes = $aobj_context->mobj_db->Execute($strInsertQuery);
if($boolSaRes)
{
$app_no = $aobj_context->mobj_db->Insert_ID();
$data='Your Registration is successful';
$arr['message']= $data;
$arr['app_no'] = $app_no;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
else
{
$arr['message'] = 'Something went wrong please contact help desk';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
?>
|