ok
Direktori : /home2/selectio/public_html/tnpsctestbatch.com/admin/add-api/ |
Current File : /home2/selectio/public_html/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; } } ?>