Content of entire pos
column is home01+home03
or home02+home04
.
I need to select rows where pos
contains home01
.
$pos = 'home01';
$stmt = $db->query("select * from banners where pos contains '" . $pos . "'");
Nothing is selected.
Also I need to avoid LIKE
statement because of large table.
Any help?