Advertisement
leonsuke

Benarkah???

Apr 12th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public function SimpanDataKategori ($nama_kategori) {
  2. try {
  3. $sql = $this->db->prepare("INSERT INTO tbl_kategoris (id_kategori, nama_kategori) VALUES (UUID(), ?)");
  4. $sql->bindParam(1, $nama_kategori, PDO::PARAM_STR);
  5. $sql->execute();
  6.  
  7. return true;
  8. } catch (Exception $e) {
  9. return false;
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement