I have a a form which let's the user select what they want to display. Now the results of this looks like that: `9, 10, 11`. These are IDs from the table.

These are the IDs of the type they what to show. I have my query already, but I want to add this part at the end of my query.

So in this case:

```
$query = "type_ID = $result1 or type_ID = $result2 or type_ID = $result3"

```

if printed out with echo:

```
type_ID = 9 or type_ID = 10 or type_ID = 11

```

How can I achieve this?

I tried to loop and it,however this did not work and I am confused how to do add the MySQL code to this.

```
$result = $result . $_GET['type_ID'][$i]

```