Showing posts with label CRUD. Show all posts
Showing posts with label CRUD. Show all posts

Monday, 15 August 2016

Update Database -CRUD 3 -Codeigniter 3

Gambar 1. Update Database -CRUD 3 -Codeigniter 3 Langkah Awal: 1.  Config Database(dilihat halaman crud 1)2.  Autoload Database (dilihat halaman crud 1) 3. Baseurl (dilihat halaman crud 2) link halaman sebelumya: https://komputasistat.blogspot.co.id/2016/08/insert-database-crud-2-codeigniter-3.html https://komputasistat.blogspot.co.id/2016/08/select-database-crud-1-codeigniter-3.html Langkah Selanjutnya: 1. database SQL: CREATE TABLE IF NOT EXISTS `user` ( `role` int(1) NOT NULL, `id_user` int(4) NOT...

Sunday, 14 August 2016

Insert Database -CRUD 2 -Codeigniter 3

Gambar 1. Insert Database -CRUD 2 -Codeigniter 3 Pengaturan Awal: 1.  Database /MySQL (menggunakan database tutorial sebelumnya) 2.  Config Database 3.  Autoload Database dapat melihat halaman sebelumya: https://komputasistat.blogspot.co.id/2016/08/select-database-crud-1-codeigniter-3.html Langkah Selanjutnya: 1. Atur baseurl karena kita akan menggunaan fungsi baseurl sourcecode (...\application\config\config.php) $config['base_url'] = 'http://localhost:8012/latihanci/MVC/1/'; *sesuaikan dengan baseurl CodeIgneter...

Select Database -CRUD 1 -Codeigniter 3

Gambar 1. Select Database -CRUD 1 -Codeigniter3 Source SQL: -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE IF NOT EXISTS `user` ( `role` int(1) NOT NULL, `id_user` int(4) NOT NULL, `username` varchar(50) NOT NULL, `password` char(128) NOT NULL, `last_login` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`role`, `id_user`, `username`, `password`, `last_login`) VALUES (1, 1, 'hasta', 'C1CF6A5C0E168B080C446E7F5600B2404BA06387DC10D96014C941E5F82615AE96AA231727D38728AA446F26B6765CFDBA3E9A18F27E39B0A4B8EA2A541B4E41',...