0
I have two fields in a mysql table, Description and degree.
how do I do when I search type WORD and 4 ( being WORD from the Description field and 4 from the Grade field? a result appears?
PS.: Both description and degree are in text mode.
PS2.: if I search separately it finds result (like, if I type only WORD it finds, and if I search only 4 it finds also)
First post the query you’re using, so we can help you.
– Mauro Alexandre
@Mauroalexandre put it there ^^
– Eduardo Rodrigues
A
AND
solve it, right? Liketal campo LIKE '%sua palavra%' AND tal campo LIKE '%outra palavra%'
, I guess that’s it, I didn’t quite understand your question– Woton Sampaio
@Wotonsampaio is like this, many times what will type in this system is present in more than one field, but the query does not show the result when I type something that is present in the two fields, using the example I put in the question if I type word 4, shows no result, even having word in the Description field and 4 in the grade field
– Eduardo Rodrigues