diff --git a/crud_ci/application/models/products_model.php b/crud_ci/application/models/products_model.php index 274fead..fc9bbaa 100644 --- a/crud_ci/application/models/products_model.php +++ b/crud_ci/application/models/products_model.php @@ -32,10 +32,11 @@ function addProduct($data) function updateProduct($id) { //update produk berdasarkan id + $this->db->update('msProduct', array('id' => $_POST['id'])); } function deleteProduct($id) { //delete produk berdasarkan id } -} \ No newline at end of file +}