I am trying to pass an array to
$stmt->bind_param for as an IN variable. How can I do this?
$values = array('a','b','c','d'); $values = '"' . implode('","', $values) . '"'; $stmt->prepare('SELECT value1, value2 FROM table1 WHERE value3 IN (?)'); $stmt->bind_param('s', $values);
I can't get it to work for the life of me. Any thoughts? The above code is just a sample.