Created
June 3, 2017 16:16
-
-
Save ragasubekti/8f4a29eccb1c0717e19eaa504e7131d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function insert($data) { | |
$query = $this->db->insert('video', [ | |
'nama' => $data->nama, | |
'keterangan' => $data->keterangan, | |
'mapel' => $data->mapel, | |
'video_url' => $data->url, | |
'id_user' => $data->id_user | |
]); | |
if(!$query){ | |
return $this->db->_error_message(); | |
} else { | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment