Skip to content

Instantly share code, notes, and snippets.

@cjzeven
Created May 13, 2017 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjzeven/ebd572adb85e4197bdb26cfba9c7a654 to your computer and use it in GitHub Desktop.
Save cjzeven/ebd572adb85e4197bdb26cfba9c7a654 to your computer and use it in GitHub Desktop.
<?php
// 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