title: I can't solve this Parse error: syntax error, unexpected T_WHILE
body: <p>error:Parse error: syntax error, unexpected T_WHILE in C:\Program Files (x86)\EasyPHP-5.3.5.0\www\Pharmaceutical Distribution System\PDS\add-department-1.php on line 149</p>
  
  <p>here is my php code for add options dynamically from php mysql.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
   &lt;label&gt;Department&lt;/label&gt;
   &lt;select class="form-control" name="Department" required&gt;
   &lt;option&gt;Select Department&lt;/option&gt;
   &lt;?php
      $link = mysqli_connect("127.0.0.1", "root", "");
      $SqlResult = mysqli_query($link, "SELECT department_name from department_master");
      mysql_select_db('pds',$link)
      while($Row = mysqli_fetch_array($SqlResult))
      {
        ?&gt;
        &lt;option value="&lt;?php echo $Row['department_name']; ?&gt;"&gt;&lt;/option&gt;
      &lt;?php 
      }
      ?&gt;
      &lt;/select&gt;
                                                                  &lt;/div&gt;
  </code></pre>