Hello,
The title could be confusing, but I think my doubt is clear.
I'll explain. I'm doing this query:
$sql = 'SELECT * FROM calendar WHERE day = "'.$day.'" AND month = "'.$month.'" AND year = "'.$year.'" AND realizada = 0 AND colaborador = "What to put here?!"';
But the field "colaborador" is a serialized array.
One example, when I print_r
the value of my array after unserialize it's something like this:
Array ( [0] => l3gion [1] => Someone [2] => teste )
Imagine that I want to search for "l3gion" in the previous Query, how can I do this?
Thank you.
l3gion