<?php //mysql_connect $servername = "localhost"; $username = "root"; $password = ""; $dbname = "surat"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } //postgresql $host = "localhost"; $user = "postgres"; $pass = "........"; $db = "dikti"; $con = pg_connect("host=$host dbname=$db user=$user password=$pass") or die ("Could not connect to server\n"); //ambil data $nomor= ""; $tanggal_agenda = $_POST["tanggal_agenda"]; function rubah_tgl_th($th) { $exp = explode(' ',$th); if (count($exp) == 3) { $th =$exp[2]; } return $th; } //rubah tanggal ke bulan ---- function rubah_tgl_bl($bl) { $exp = explode(' ',$bl); if (count($exp) == 3...