title: Query to list the row if a certain variable is present in a column
body: <p>The query below works fine if the column 'id' has values like 1,2,22, etc. but it has values of the form:1*2*3#7*3#4*5*21#4*3. Now the row should get stored in $row if $x(of the form 1,2,12,etc.) is found in the corresponding column 'id'.How should the query $q be to achieve this?</p>
  
  <pre><code>$q=mysqli_query($db,"select * from table1 where id='$x' order by cid DESC");
  $row=mysqli_fetch_assoc($q);
  </code></pre>