application/models/Dashboard_model.php
/*edit the admins info only and its security*/
edit the admins info only and its security
edit the admins info only and its security
public function EditInfo($data,$id,$table){
				$this->db->where($table.'.id', $id);
				if($this->db->update($table, $data)){
					return "Updated succesfully";
				}else{
					return "Error";
				}
		}
public function EditInfo ( $ data , $ id , $ table ) { $ this -> db -> where ( $ table . '.id' , $ id ) ; if ( $ this -> db -> update ( $ table , $ data ) ) { return " Updated succesfully " ; } else { return " Error " ; } }
edit the admins info only and its security
edit the admins info only and its security