Vytvořte pole tolika ?
jak máte hodnoty, a vhoďte je do dotazu.
$placeholders = array_fill(0, count($thingArray), '?');
$sql = "SELECT thing FROM things WHERE thing_uid IN (" . implode(',', $placeholders) . ")";
Vytvořte pole tolika ?
jak máte hodnoty, a vhoďte je do dotazu.
$placeholders = array_fill(0, count($thingArray), '?');
$sql = "SELECT thing FROM things WHERE thing_uid IN (" . implode(',', $placeholders) . ")";