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.

17 lines
506 B

5 years ago
  1. <?php
  2. // header('Access-Control-Allow-Origin: *');
  3. // header('Access-Control-Request-Method: POST');
  4. $server = "192.168.0.5";
  5. $user = "crosario";
  6. $password = "b4tl3f13ld@db";
  7. $database = "SINAK";
  8. // Microsoft SQL Server using the SQL Native Client 10.0 ODBC Driver - allows connection to SQL 7, 2000, 2005 and 2008
  9. $conn = odbc_connect("Driver={SQL Server Native Client 10.0};Server=$server;Database=$database;", $user, $password);
  10. // if ($connection)
  11. // echo "mau";
  12. // else
  13. // echo "tidak";
  14. ?>