title: How to set selected option in dropdown
body: <p>This will echo dropdown value take from database that</p>
  
  <pre><code>&lt;select name="PACKAGE_ID" id="PACKAGE_ID" ng-model="FormData.Phases" class="form-control" required&gt;
  
  &lt;?php 
  $result=mysqli_query($conn, "select * from unifi WHERE STATUS!='DELETE' ORDER BY PACKAGE_NAME ASC");
  while ($row=mysqli_fetch_assoc($result)) {
  ?&gt;
      &lt;option name="UNIFI" value="&lt;?php echo $row["PACKAGE_NAME"]; ?&gt;"&gt;
          &lt;?php echo $row[ "PACKAGE_NAME"]; ?&gt;
      &lt;/option&gt;
  &lt;?php } ?&gt;
  
  &lt;?php $result=mysqli_query($conn, "select * from streamyx WHERE STATUS!='DELETE' ORDER BY PACKAGE_NAME ASC");
  while ($row=mysqli_fetch_assoc($result)) {?&gt;
      &lt;option name="STREAMYX" value="&lt;?php echo $row["PACKAGE_NAME"]; ?&gt;"&gt;
          &lt;?php echo $row[ "PACKAGE_NAME"]; ?&gt;
      &lt;/option&gt;
  &lt;?php } ?&gt;
  
  
  &lt;?php $result=mysqli_query($conn, "select * from webe WHERE STATUS!='DELETE' ORDER BY PACKAGE_NAME ASC");
  while ($row=mysqli_fetch_assoc($result)) {?&gt;
      &lt;option name="WEBE" value="&lt;?php echo $row["PACKAGE_NAME"]; ?&gt;"&gt;
          &lt;?php echo $row[ "PACKAGE_NAME"]; ?&gt;
      &lt;/option&gt;
  &lt;?php } ?&gt;
  
  &lt;?php $result=mysqli_query($conn, "select * from dome WHERE STATUS!='DELETE' ORDER BY PACKAGE_NAME ASC");
  while ($row=mysqli_fetch_assoc($result)) {?&gt;
      &lt;option name="WEBE" value="&lt;?php echo $row["PACKAGE_NAME"]; ?&gt;"&gt;
          &lt;?php echo $row[ "PACKAGE_NAME"]; ?&gt;
      &lt;/option&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p></p>
  
  <p>below is how im taking value from database based on ticket id</p>
  
  <pre><code> $sql = "SELECT * FROM cusinfo WHERE TICKET_ID = '".$strid."' ";
   $query = mysqli_query($conn,$sql);
   $result=mysqli_fetch_array($query,MYSQLI_ASSOC);
  </code></pre>
  
  <p>I want to echo selected value for eg.<code>&lt;&lt;&lt; $result["PACKAGE_ID"]==$row[ "PACKAGE_NAME"] echo selected &gt;&gt;</code></p>