Unfortunately, I don't get it...
I have a php variable which contains comma separated numbers as a string:
$var = $_POST['postvar'];
And postvar contains the string: 1,2,3,4,5,6,7,8,9,10
I want to use this string in a SQL query:
SELECT * FROM table WHERE id NOT IN ('$var');
But MS SQL ignore my id-restriction.
Where is the mistake?
Thank you so much!