title: Select multiple not working
body: <p>I have a select dropdown in html but it won't select multiple values. here is the code that I have for this:</p>
  
  <pre><code>&lt;div class="col-sm-10"&gt;          
      &lt;select multiple id="cmbService" name="cmbService" class="form-control" &gt;
          &lt;option value="0"&gt;- Select One -&lt;/option&gt;
              &lt;?php                                       
                  try{
                      $dbHost = "localhost";
                      $dbUser = "mdchadmin";
                      $dbPass = "123456";
                      $dbName = "mdch_new";
  
                      $conn = new mysqli($dbHost, $dbUser, $dbPass, $dbName);
                      if ($conn-&gt;connect_error) {
                          die("Connection failed: " . $conn-&gt;connect_error);
                      } 
                      $sql = "SELECT PROMO_NUMBER, PROMO_NAME FROM PROMOS where status=1";
                      $result = $conn-&gt;query($sql);
                      if ($result-&gt;num_rows &gt; 0) {
                          while($row = $result-&gt;fetch_assoc()) {
                              echo "&lt;option value=\"{$row['PROMO_NUMBER']}\"&gt;{$row['PROMO_NAME']}&lt;/option&gt;";
                          }
                      }                                       
                      $conn-&gt;close(); 
                  }catch (Exception $e) {
                      echo 'Error: ' . $e-&gt;getMessage();
                  }                                           
              ?&gt;
      &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>EDIT: IT NOW WORKS THANKS TO THE ANSWER. BUT NOW I HAVE A NEW PROBLEM(kinda) and i'm going thru this</p>
  
  <p>so i did what u suggested, and im getting this $customer array in my other php file which results to:</p>
  
  <pre><code>te,GIAN MARCO.'_'.1235
  g,g.'_'.123
  
  where 1235 and 123 are  the  data on the mobile numbers column.
  the problem is , when i do 
  
  $mobile=(explode("_",$customers));
  it doesn't give me anything when i output it via: 
  
  foreach($mobile as $z) {
  echo $z; echo "&lt;br&gt;";}
  </code></pre>
  
  <p>@identity unknown</p>