Skip to content

Instantly share code, notes, and snippets.

@cjzeven
Created May 13, 2017 01:31
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/4ff7f1e42c2c8b3a8330709f1c5a420e to your computer and use it in GitHub Desktop.
Save cjzeven/4ff7f1e42c2c8b3a8330709f1c5a420e to your computer and use it in GitHub Desktop.
<?php
$data = [];
// Looping array id dan melakukan pencarian
// berdasarkan id tersebut.
foreach ($ids as $id) {
$data[] = DataRepository::findById($id);
}
// Query yang terjadi di belakang layar
$result = $connection->query("SELECT * FROM repo WHERE id = " . $id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment