Nav apraksta

1234567891011121314151617181920
  1. <?php
  2. $TREFFLE_BASE_URL = "https://trefle.io";
  3. $TREFFLE_LIST_PATH = "/api/v1/plants";
  4. $TREFFLE_SEARCH_PATH = "/api/v1/plants/search";
  5. $TREFFLE_TOKEN = "hg6M-l4XhrgVgn2A-qZC6KKMrVPMUuCffVfDgDPtc0I";
  6. $DB_HOST = "localhost";
  7. $DB_USER = "Floradex";
  8. $DB_PASSWORD = "13CUdcMOXiybeZuj";
  9. $DB_NAME = "Floradex";
  10. $connection = new mysqli($DB_HOST, $DB_USER, $DB_PASSWORD, $DB_NAME);
  11. if ($connection->connect_errno) {
  12. echo "Failed to connect to MySQL: " . $connection->connect_error;
  13. exit();
  14. }
  15. $connection->set_charset('utf8');