title: How to get results from record by checking comma seprate values?
body: <p>I want to check the records from a column where the class_id is 47, but in the class_id column there is data 49,47,24. if there is only one element in records then my query working fine but if i have multiple values and want to check with single value then its not working.</p>
  
  <pre><code>  $class_id = $_GET['class_id']; //it will bring only one at a time
    $category=mysql_query("select * from messages where class_id='".$class_id."'"); 
  </code></pre>