2
I have a field in a table with data separated by comma:
id_regioes: 1,2,3,4,5,6
.
When I do the query "SELECT * FROM `tb_operadora` WHERE `id_regioes` = 1"
, or "= 6"
returns ok, but not when it is in 2,3,4,5. Even using LIKE
. I guess why I need to ride a array before the query.
How to find data in PHP + Mysql?
When I search this field separated by commas, it only finds items that fit the first and/or the last record of the field.
You can help http://answall.com/q/1788
– rray