ok

Mini Shell

Direktori : /home/ngwcolle/www/LIBRARY-NGWC/admin/ajax/
Upload File :
Current File : /home/ngwcolle/www/LIBRARY-NGWC/admin/ajax/doprocessajax.php

<?php
error_reporting(0);
date_default_timezone_set('Asia/Kolkata');
// include('../includes/config.php');
include('../includes/dbconnection.php');
// if (strlen($_SESSION['adid']==0)) {
//   header('location:logout.php');
            if(isset($_POST['ajax']))
            {
            $a=$_POST['ajax'];
            $sql="UPDATE tblsection set yearendprocess='$a'";
            $result=$dbh->prepare($sql);
            if($result->execute())
            {
            // $query->execute();
            $sqlsection=$dbh->exec("UPDATE tblsection set filled='0',vacancy=strength-filled");
            // $ss=$dbh->exec();
                echo "Completed";
                // exit();
            }
            else
            {
                echo "not updated";
            }
            
            }
                if(isset($_POST["type"]))
                {
                $b=$_POST['ajax'];
                $sql1="UPDATE tbltrans set yearendprocess='$b'";
                $result1=$dbh->prepare($sql1);
                        if($result1->execute())
                        {
                        // $query->execute();
                        // $$sqlsection=$dbh->exec("UPDATE tblsection set filled='0',vacancy=strength-filled");
                        // $ss=$dbh->exec();
                            echo "Transaction Reset Done";
                        }
                        else
                        {
                            echo "not updated";
                        }
                }
    ?>

Zerion Mini Shell 1.0