ok
Direktori : /home2/selectio/www/y1jobportal.in/api/ |
Current File : /home2/selectio/www/y1jobportal.in/api/plan-add-api.php |
<?php include "../admin/api/config/config.php"; // Payment Delete if($_POST['type']=="added_plan"){ $plan_id = $_POST['plan_id']; $statement = $pdo->prepare("INSERT INTO `tbl_checkout`( `customer_id`, `plan_id`) VALUES (?,?)"); $result=$statement->execute(array(1,$plan_id)); $last_inserted_id = $pdo->lastInsertId(); if($result) { $check_out_id = $last_inserted_id; $message='Plan is Added To The Pricing History..'; $error='1'; } else { $message='Failed..'; $error='0'; } $datas[] = array('message' => $message, 'error' => $error, 'check_out_id' => $check_out_id); echo json_encode($datas); } ?>