ok
Direktori : /home2/selectio/www/gangabuvana/admin/cms/application/models/admin/ |
Current File : //home2/selectio/www/gangabuvana/admin/cms/application/models/admin/Model_social_media.php |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Model_social_media extends CI_Model { function show() { $sql = "SELECT * FROM tbl_social"; $query = $this->db->query($sql); return $query->result_array(); } function update($social_name,$data) { $this->db->where('social_name',$social_name); $this->db->update('tbl_social',$data); } }