title: 2 ifs with 2 different returns to a insert query
body: <p>This is the code for submitting data from a form. It used to work fine till there was only the first 'if'. Now I have 2 multiple select list menus, with data going to 2 different columns through the same query.</p>
  
  <p>After submitting the form, I get a message "The query was empty"</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
      $username="username";
      $password="password";
      $database="databasename";
  
  
      // Configuration Settings
  
      $momdate=$_POST["momdate"];
      $Committee=$_POST["Committee"];
      $Number=$_POST["Number"];
      $CommitteeName=$_POST["CommitteeName"];
      $momdate2=$_POST["momdate2"];
      $meeting_venue=$_POST["meeting_venue"];
      $member1=$_POST["member1"]; - multiple select option
      $member2=$_POST["member2"]; - multiple select option
      $momdate3=$_POST["momdate3"];
      $actiontakenpoints=$_POST["actiontakenpoints"];
      $items=$_POST["items"];
      $prepby=$_POST["prepby"];
      $approvedby=$_POST["approvedby"];
  
      mysql_connect(localhost,$username,$password);
      @mysql_select_db($database) or die( "Unable to select database");
  
  
      if ($_POST) {
          $member1_string = implode(', ', $_POST['member1']); 
      } elseif ($_POST) {
          $member2_string = implode(', ', $_POST['member2']); 
      } else
          $query = "INSERT INTO `mangeshk_ktweb`.`dgmcmom` (`momdate`, `Committee`, `Number`, `CommitteeName`, `momdate2`, `meeting_venue`, `member1`, `member1`, `momdate3`, `actiontakenpoints`, `items`, `prepby`, `approvedby`) VALUES ('$momdate', '$Committee', '$Number', '$CommitteeName', '$momdate', '$meeting_venue', '$member1', '$member2', '$momdate3', '$actiontakenpoints', '$items', '$prepby', '$approvedby')";
  
      mysql_query($query) OR die(mysql_error()); 
  
      mysql_close();
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>