query($sql) === TRUE) { echo "Data berhasil disimpan. Lihat Jadwal"; } else { echo "Error: " . $conn->error; } $conn->close(); ?>