[Solved] Run SQL query based on drop down value [closed]


<?php
include("dbconfig.php");
if(isset($_POST['submit']))
{
   if(isset($_POST['type']))
   {
       if($_POST['type'] == "enquiry")
       {
            Query
       }
       elseif($_POST['type'] == "enroll")
       {
            Query
       }
       else
       {
          echo "Please select enquiry or enrollment";
       }
   }
   else
   {
      echo "Please select an option";
   }

}

?>
<form action="dropd.php" method="POST">
<select name="type">
<option value="">Please select:</option>
<option value="enquiry">Student enquiry</option>
<option value="enroll">Student enrollment</option>
<input type="submit" name="submit" value="SUBMIT">
</select>
</form>

1

solved Run SQL query based on drop down value [closed]