title: Retrieving the user data with the value in array in PHP and MYSQL
body: <p>Hello guys i inserted some arrays in the database using the html check boxes and it worked fine.<br><br> Now i wan't to check for students with the years and study modes in the array. But it's not working i have tried this below:</p>
  <pre><code>$StudyYears = $rows['study_years'];  
  $StudyModes = $rows['study_modes'];
  </code></pre>
  <p>&quot;SELECT * FROM <code>students</code> WHERE <code>study_mode</code> IN ('$StudyModes')&quot;;</p>