I need to make an Insert to my database, my table is called "Topic" which keeps an idTema, textTeam and date. The point is that when I want to insert a topic, I must check if a similar theme already exists (in other words). I'm doing something like this ...
select * from tema where textoTema like CONCAT('%', '".$variableConTexto."', '%');
This query returns me null ... Is there any other function to do it? that is effective, since the previous query when testing it with a single word or letter is perfectly executed.
PS: I'm using codeigniter