I\'m storing a list of items in a serialized array within a field in my database (I\'m using PHP/MySQL).
I want to have a query that will select all the records that
How about you serialize the value you're searching for?
$sql = sprintf("select * from tbl WHERE serialized_col like '%%%s%%'", serialize($n));
or
$sql = sprintf("select * from tbl WHERE serialized_col like '%s%s%s'", '%', serialize($n), '%');