<?php
namespace App\Models;
use CodeIgniter\Model;
class Mauth extends Model
{
function cekuser($username)
$query = $this->db->query("SELECT A.*,B.TP_KANTOR FROM PEGAWAI A
LEFT JOIN DIM_KANTOR B ON A.KD_KANTOR = B.KD_KANTOR WHERE A.NIP9 = '" . $username . "'");
return $query;
}