From 72b547fbe6a4cf72e46ad561ff89c92cc8d31e04 Mon Sep 17 00:00:00 2001 From: Fareez Borhanudin Date: Thu, 3 Oct 2019 14:54:36 +0800 Subject: [PATCH] Update products_model.php add function updateproduct id --- crud_ci/application/models/products_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}