Hi,

Since I'm kinda pretty new to the PHP I'm working with a Web application in php.
I'm using select2 plugin to add multiple selected item to the box

http://ivaynberg.github.io/select2/#multi

I already added this code

$subjects = mysqli_real_escape_string($link, $_POST['s2_possible_subjects']);

and when I give variable $subject to the Insert statement it adding only one selected item.

how can I send multiple values to the database

Thanks :)