first commit
This commit is contained in:
34
application/models/web/m_spam_media_log.php
Executable file
34
application/models/web/m_spam_media_log.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class m_spam_media_log extends CI_Model{
|
||||
|
||||
// 생성자, 해당 모델이 생성될때 항상 실행되는 초기화작업
|
||||
function __construct(){
|
||||
parent::__construct();
|
||||
|
||||
$this->load->database();
|
||||
$this->load->library('session');
|
||||
}
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# PURPOSE : insert
|
||||
# CREATE : 2018-05-03
|
||||
#---------------------------------------------------------------------------
|
||||
function spam_media_log_insert($req_data){
|
||||
|
||||
$now_date = date("Y-m-d H:i:s");
|
||||
$req_data['reg_date'] = $now_date;
|
||||
|
||||
$row = $this->db->insert('spam_media_log', $req_data);
|
||||
return $row;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user