usually i help people with whatever they need, this time i'm asking for your help.

i'm trying to get a specific row from my database after preforming multiple checkbox select i spend 50 hours on that and i couldn't manage to do that.
each time i'm changing something in my code i get a different ERROR.
i was looking for an answer in every HTML page that exist on the INTERNET !

please show me the light..

here is a part of my form.... value means "size" of the toy

```
    <div class=""><input type="checkbox" name="toys[]" value="6X2" /><label></label></div>
    <div class=""><input type="checkbox" name="toys[]" value="4X3" /><label></label></div>
    <div class=""><input type="checkbox" name="toys[]" value="8X2.5" /><label></label></div></strike>

```

here is the PHP code...

```
  if (isset($_POST['toys'])) {

     foreach($_POST['toys'] as $each_check) {

      }
  }

  $query = $db->query = 'SELECT * FROM `toys` WHERE SIZE = '.$each_check;   

echo "<table>";
    echo "<tr>
            <th>ratio</th>
            <th>size</th>
            <th>built</th>
            <th>description</th>            
          </tr>";

while ($row = $query->fetch(PDO::FETCH_ASSOC)) 

        echo "<tr><td>" . $row['ratio'] .
            "</td><td>" . $row['size'] .
            "</td><td>" . $row['built'] .
            "</td><td>" . $row['description'] .
            "</td></tr>";
echo "</table>";        

```