ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/tnpsctestbatch.com/admin/add-api/
Upload File :
Current File : //proc/self/root/home2/selectio/www/tnpsctestbatch.com/admin/add-api/add-standard-form.php

<?php  include "../config/config.php"; 

if($_POST['type']=='add_standard_form'){
    error_log("inside if condition");
        try{

        for($i=0;$i<count($_POST['standard']);$i++){
            
        $standard = $_POST['standard'][$i];
        $subject_id = $_POST['subject'];
        
            
            $statement = $pdo->prepare("INSERT INTO `tbl_standard`(`standard`,`subject_id`) VALUES (?,?)");                   
            
            $result=$statement->execute(array($standard,$subject_id));
        
        }
        
            
           error_log();
           
        }catch(Exception $e){
            $error=$e;
        }     
    }
?>

Zerion Mini Shell 1.0