Created
May 13, 2017 01:48
-
-
Save cjzeven/ebd572adb85e4197bdb26cfba9c7a654 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 | |
// 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