application/models/Dashboard_model.php
/*function for deleting a data in database*/
function for deleting a data in database
function for deleting a data in database
public function Delete($id,$table){
				$this->db->where($table.'.id', $id);
				if($this->db->delete($table)){
					return "Deleted succesfully";
				}else{
					return "Error";
				}		
		}
public function Delete ( $ id , $ table ) { $ this -> db -> where ( $ table . '.id' , $ id ) ; if ( $ this -> db -> delete ( $ table ) ) { return " Deleted succesfully " ; } else { return " Error " ; } }
function for deleting a data in database
function for deleting a data in database