echo '<script>alert("插入成功")</script>';

 

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

include(dirname(__FILE__).'\admin\base_controller.php');
class Gb extends Base_Controller {
    public function __construct()
    {
        parent::__construct();
        $this->load->model('gb_model');
    }
    public function index()
    {
        
        if(!empty($_POST))
        {
          $_POST['textime']=time();
          $msg=$this->gb_model->insert('gb',$_POST);
          if(isset($msg))
              echo '<script>alert("插入成功")</script>';
              
        }
        
        $this->load->view('gb');
    }
    
    
    
    
}

相关文章:

  • 2021-12-16
  • 2021-12-01
  • 2021-08-05
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-07-17
相关资源
相似解决方案