Is it possible to invoke bind_param and execute iteratively, or must I prepare a statement at the beginning of each iteration?
$query = $db->prepare('...');
foreach ($dataItem as $item) {
$query->bind_param($v1, $v2, ..., $item);
$query->execute();
}
$query->close();
If I do have to recreate the statement each iteration, is it possible to optimize this process?
Thank you!