title: how to display either of the two database values in a label using autocomplete in php
body: <p>This is my following code :</p>
  
  <pre><code>&lt;?php include("config.php");
  include("session-user.php");
  
  $term = trim(strip_tags($_GET['term']));//retrieve the search term that    autocomplete sends
  
  $qstring = "SELECT product_title, product_details, product_id  FROM tbl_product WHERE product_title LIKE '".$term."%' OR product_details LIKE '".$term."' and is_delete = '0'";
  $result = mysqli_query($con,$qstring);//query the database for entries containing the term
  
  while ($row = mysqli_fetch_array($result))//loop through the retrieved values
  {
      $row['label']=htmlentities($row['product_title']);
      $row['label']=htmlentities($row['product_details']);
      $row['product_id']=htmlentities($row['product_id']);
      $row_set[] = $row;//build an array
  }
  echo json_encode($row_set);
  </code></pre>
  
  <p>currently it displays only one of the <code>labels</code>, I want to search with either of the two labels</p>
  
  <p>How can I achieve it?</p>