Created
May 13, 2017 01:31
-
-
Save cjzeven/4ff7f1e42c2c8b3a8330709f1c5a420e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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