Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class M_login extends CI_Model{
- function cek_admin($user,$pass){
- return $this->db->query("SELECT*FROM admin WHERE admin='$user' and password='$pass' ");
- }
- function cek_op($user,$pass){
- return $this->db->query("SELECT*FROM operator WHERE op='$user' and password='$pass' ");
- }
- }
- ?>
Add Comment
Please, Sign In to add comment