Notice: Undefined index: dat in D:\xampp\htdocs\logger\write1a.php on line 3

Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection timed out (0x0000274C/10060) Is the server running on host "192.168.199.6" and accepting TCP/IP connections on port 5432? in D:\xampp\htdocs\logger\write1a.php on line 7
Connection Failed