| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/spp.raudhatulfalah.sch.id/mts/ |
Upload File : |
<?php
session_start();
error_reporting(0);
date_default_timezone_set('Asia/Jakarta');
include "config/koneksi.php";
include "config/library.php";
include "config/fungsi_indotgl.php";
$tgl_jam=date("Y-m-d h:i:s");
$id_siswa=$_GET[siswa];
$query = mysql_query("SELECT max(id_kwitansi) as kodeTerbesar FROM kwitansi");
$data = mysql_fetch_array($query);
$kode_ID = $data['kodeTerbesar'];
$urutan = (int) substr($kode_ID, 1, 8);
$urutan++;
$kode_ID = sprintf("%08s", $urutan);
$hasil_ID = 'KWT'.$kode_ID;
mysql_query("INSERT INTO kwitansi (id_kwitansi,id_siswa,tgl_cetak) VALUES ('$hasil_ID','$id_siswa','$tgl_jam')");
echo "<script>document.location.href='./slip_bulanan_persiswa_peritem_sekarang.php?kwt=$hasil_ID&tahun=$_GET[tahun]&tgl=$_GET[tgl]&kelas=$_GET[kelas]&siswa=$_GET[siswa]'</script>";
?>