$DataModel =new \App\Models\NewsModel();
$DataModel->set('FileName','jpg');
$DataModel->where('id', 101);
$DataModel->update();
$DataModel =new \App\Models\NewsModel();
$DataModel->set('FileName','jpg');
$DataModel->where('id', 101);
$DataModel->update();
<form method="post" action="<?php echo site_url('/Admin/newsadddb'); ?>" enctype="multipart/form-data">
<input type="file" name="NewsFile" id="NewsFile" style="display:none">
<input type="submit" name="submit" value="Save" class="btn btn-danger" >
</form>
Signup to Google Recaptcha and get the public and private key.
Make a Model named CaptchaResponse in Model folder and add the given code below.