ok

Mini Shell

Direktori : /home2/selectio/public_html/tnpsctestbatch.com/admin/add-api/
Upload File :
Current File : /home2/selectio/public_html/tnpsctestbatch.com/admin/add-api/add-topic-form.php

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

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

        for($i=0;$i<count($_POST['topic']);$i++){
            
        
        $subject_id = $_POST['subject_type'];
        $standard_id = $_POST['standard_type'];
        $topic = $_POST['topic'][$i];
        $syllabus = $_POST['syllabus'][$i];
        $group = $_POST['group_topic'][$i];
        $discription_content = $_POST['discription_content'][$i];
        $discription_keyword = $_POST['discription_keyword'][$i];
        
        
        error_log("Ajay " .$discription_keyword);
        $discription_title = $_POST['discription_title'][$i];
        $topic_content = $_POST['topic_content'][$i];
            
            $statement = $pdo->prepare("INSERT INTO `tbl_topic`(`subject_id`,`standard_id`,`topic`,`syllabus`,`group_topic`,`discription_content`,`discription_keyword`,`discription_title`,`topic_content`) VALUES (?,?,?,?,?,?,?,?,?)");        
            
            $result=$statement->execute(array($subject_id,$standard_id,$topic,$syllabus,$group,$discription_content,$discription_keyword,$discription_title,$topic_content));
            
        }
            
           error_log();
            
            
        }catch(Exception $e){
            $error=$e;
        }     
    }
?>

Zerion Mini Shell 1.0