getCompanies.php 201 B

12345678910111213141516
  1. <?php
  2. require('auth-validate.php');
  3. require('../../db.php');
  4. header('Content-Type: application/json');
  5. //get all companies
  6. $rows = getCompanies();
  7. echo json_encode($rows, JSON_PRETTY_PRINT);
  8. ?>