[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simkeu
/
application
/
controllers
/
[
Home
]
File: C_setLogin.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class C_setLogin extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('Login_model', '', TRUE); } function index() { // $query = $this->db->get_where('ueu_tbl_user', array('is_login' => 1)); $query = $this->db->get('ueu_tbl_user'); foreach ($query->result() as $row) { echo "<p>$row->username wewenang $row->wewenang status $row->is_login <a href='".base_url('C_setLogin/out/'.$row->idlog)."'>out</a></p>"; } } public function out($id) { $a = array( 'is_login' => 0 ); $this->Login_model->update_login($id, $a); $this->index(); echo "sukses#".$id; } }