application/models/Dashboard_model.php
/*update photo of the tourist spot*/
update photo of the tourist spot
update photo of the tourist spot
function updatePhoto($file,$id){
			$array = array('photo' => $file);
			$this->db->where('spots.id',$id);
			return $this->db->update('spots', $array);
		}
function updatePhoto ( $ file , $ id ) { $ array = array ( 'photo' => $ file ) ; $ this -> db -> where ( 'spots.id' , $ id ) ; return $ this -> db -> update ( 'spots' , $ array ) ; }
update photo of the tourist spot
update photo of the tourist spot