Rafael Nuansa: Script
Menampilkan data table sesuai session user login di Codeigniter

Menampilkan data table sesuai session user login di Codeigniter

Session adalah cara yang digunakan untuk meyimpan pada server komputer untuk digunakan pada beberapa halaman termasuk halaman itu sendiri. Session menyimpan informasi ke dalam bentuk variabel super global $_SESSION. Variabel ini disimpan pada server komputer dan dapat digunakan oleh semua halam pada website tempat session dimulai. Session berbeda dengan cookie yang menyimpan informasi pada komputer cilent.



Masukan kode ini pada get data yang akan di tampilkan sesuai dengan user login

$id = $this->session->userdata['logged_in']['id'];
ganti logged_in dengan session yang ditentukan, lalu buat function dengan contoh seperti berikut ini

function get_absen(){ 
$id = $this->session->userdata['logged_in']['id']; // dapatkan id user yg login   $this->db->select('id, absen');   $this->db->where('user_id', $id);//   $this->db->from('absen');   $query = $this->db->get();   return $query->result(); }

Source Code Ujian Berbasis Web dengan Codeigniter

Source Code Ujian Berbasis Web dengan Codeigniter


Computer Based Test

Adalah sebuah aplikasi ujian berbasis komputer yang dibangun dengan menggunakan framework Codeigniter 3. Aplikasi ini memiliki dua halaman yaitu halaman untuk siswa dan halaman untuk admin. Halaman siswa bisa diakses oleh siswa untuk melaksanakan ujian. Sedangkan halaman admin digunakan untuk mengelola aplikasi ini.
CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.

Release Information

This repo contains in-development code for future releases. To download the latest stable release please visit the CodeIgniter Downloads page.

Changelog and New Features

You can find a list of all changes for each release in the user guide change log.

Server Requirements

PHP version 5.6 or newer is recommended.
It should work on 5.3.7 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features.

Installation

Please see the installation section of the CodeIgniter User Guide.

License

Please see the license agreement.

Resources

Report security issues to our Security Panel or via our page on HackerOne, thank you.

Acknowledgement

The CodeIgniter team would like to thank EllisLab, all the contributors to the CodeIgniter project and you, the CodeIgniter user.

Ad Placement

Formulir Kontak