need some help with a MYSQL call. In one of my tables, I have an array (of sorts) of id's formatted likes this: 13,32,51,131,57 etc..
Every id is separated by a comma. Putting them in and getting them out I've figured out using explode and implode, but how would I go about searching through them direectly from the SQL call with php?
for example: I need to see if id# 13 is in that row.
$this_id = '13';
$sql="SELECT * FROM table WHERE this_id NOT IN ($this_id)";
So basically, I need to look through an array with NOT IN to see if the id number is in that array. Any ideas?