application/controllers/Dashboard.php
//inserting new district  to the database
inserting new district  to the database
inserting new district to the database
public function addDistrict(){
	 		if($_POST['name'] != ""){
	 			$data['name'] = $_POST['name'];
	 			$ret = $this->dashboard_model->Add($data,'district');
	 		}else{
	 			$ret = "District name must not be empty!";
	 		}
	 		echo $ret;
	 	}
public function addDistrict ( ) { if ( $ _POST [ 'name' ] != " " ) { $ data [ 'name' ] = $ _POST [ 'name' ] ; $ ret = $ this -> dashboard_model -> Add ( $ data , 'district' ) ; } else { $ ret = " District name must not be empty! " ; } echo $ ret ; }
inserting new district  to the database
inserting new district to the database