insert_id; // $return["product_id"] = $last_id; echo 'Blog Details Inserted Successfully'; } else { // $return["error_flag"] = 1; // $return["message"] = "There is an error inserting Product Details" . $link->error; echo 'Blog Details Not Inserted!'; } // echo json_encode($return); $link -> close(); ?>