Hello Boys and Girls
I got a problem. I want to write a sql query where the search can find more than one string in a var.
I try to explain it.
$test = $_POST[‘var’]; //here I got my input from the form to the var ‘test’
$query = "SELECT * FROM table WHERE var LIKE ‘%$test%’;
If there is a entry in the table thats says “Hello World” and I write “Worl” in the form I get the entry because of the Wildcards “%”.
But I want to write for example “llo; orld” in the form and get the entry. Just two contiguous strings who are seperated by a “;”. Hope it’s understandable what I mean.
Can you help me please ?