<?php
        include('../../config/config.php');

        $userid  = $_POST['UserID'];
        $campuslocation  = mysqli_real_escape_string($link,$_POST['campuslocation']);
        $email  = $_POST['campusemail'];
        $campusnumber  = $_POST['campusnumber'];
        $country  = $_POST['country'];
        $state  = $_POST['state'];
        $lga  = $_POST['lga'];
        $address  = $_POST['campusaddress'];
        $groupschoolID =  $_POST['GroupSchoolID'];

      //  $select_schoolowner = mysqli_query($link,"SELECT * FROM `groupofschools` WHERE `AgencyOrSchoolOwnerID`='$userid'");
      //   $select_schoolowner_row = mysqli_fetch_assoc($select_schoolowner);
        // SELECT  * FROM `institution` WHERE InstitutionName='' 

        $insertcampus =  mysqli_query($link,"INSERT INTO `campus`(`InstitutionID`,
                     `CampusName`, `CampusCountry`, `CampusState`,
                      `CampusLGA`, `CampusCity`, `CampusAddress`,`CampusEmail`,`CampusPhone`)  
            VALUES ('$groupschoolID','$campuslocation','$country','$state','$lga','','$address','$email','$campusnumber')");

         if($insertcampus == true) 
         {
               echo 'great';
         }      


       

  ?>