You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
378 B

  1. <?php
  2. /**
  3. * Helper yang berkaitan dengan operasi DB
  4. */
  5. /**
  6. * Ambil semua data hasil dari ODBC exec
  7. *
  8. * @param $exec
  9. *
  10. * @return Array
  11. */
  12. function dbGet($exec) {
  13. $result = [];
  14. while ($row = odbc_fetch_array($exec)) {
  15. // Push row to result
  16. array_push($result, $row);
  17. // callback
  18. // $callback($row);
  19. }
  20. return $result;
  21. }