first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*******************************************************************
|
||||
|
||||
Module : /apps/php/login.php
|
||||
Desc. : PHP - Halaman Proses Login
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : January 5th, 2008.
|
||||
Last Modified : June 28th, 2020.
|
||||
|
||||
(c) 2008 - 2020, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
require_once(__DIR__."/../../../../vendor/autoload.php");
|
||||
require_once(__DIR__."/func/esapipd.php");
|
||||
|
||||
use siaupheng\fonia3\DB\MySQL;
|
||||
|
||||
$db = $db ?? new MySQL();
|
||||
$d2 = $d2 ?? new MySQL();
|
||||
|
||||
$db->Query("SELECT *,IF(Jenis=1,'P',IF(Jenis=2,'M','R')) Kode_Jenis FROM sapi_keg ORDER BY SapiID");
|
||||
while ($db->Next()) {
|
||||
$d2->Query("UPDATE sapi_keg SET Kode='".Kegiatan_Baru($db->Row("Tahun"), $db->Row("Kode_Jenis"))."' WHERE SapiID='".$db->Row("SapiID")."' LIMIT 1");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user