Hi,
How do you split a search string by space and put it into a prepare query?
$strings = $_POST['strings'];
$string_array = explode(" ", $strings);
$search = $mysqli->prepare("
SELECT * FROM core_table
where item_name in (
?
)
");
$search->bind_param("s", $string_array);
...
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.