Hi All,
In a field called "savedata" in a table, we store data like:
1|3|5|10
It's basically a list of numbers that correspond to data from an array set.
I'm trying to search it with PHP and not having much luck.
Currently using:
$query = "SELECT * FROM database.table WHERE savedata LIKE '1'";
if record A has savedata = 1
and
record B has savedata = 12|14|7|1|2
then the above only finds record A even though record B has a 1 as well.
I tried LIKE '%1%' with no luck.
Is there a way to do this or perhaps store the data differently in the field so that its searchable?
Best,
Cent