Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// Mencari data id
$data = DataRepository::findByIds($ids);
// Query yang terjadi di belakang layar
$result = $connection->query("SELECT * FROM repo WHERE id IN (" . implode(',', $ids));
$dataResult = [];
while ($row = $result->fetch_row()) {
$dataResult[] = $row;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment