application/models/Dashboard_model.php
/*function for edting the desription of the tourist spot*/
function for edting the desription of the tourist spot
function for edting the desription of the tourist spot
public function EditDesc($data,$id,$table){
			  $this->db->where($table.'.id', $id);
			  if($this->db->update($table, $data)){
				  return "Updated succesfully";
			  }else{
				  return "Error";
			  }	
	  }
public function EditDesc ( $ data , $ id , $ table ) { $ this -> db -> where ( $ table . '.id' , $ id ) ; if ( $ this -> db -> update ( $ table , $ data ) ) { return " Updated succesfully " ; } else { return " Error " ; } }
function for edting the desription of the tourist spot
function for edting the desription of the tourist spot