登录正在运行,但是从Codeigniter中删除后它就不再有用了。
login_view.php
<?php echo validation_errors(); ?>
<!-- <form class="form-signin" > -->
<?php echo form_open('verifylogin'); ?>
<h2 class="form-signin-heading"> Inventory Management System </h2>
<div class="login-wrap">
<input type="text" class="form-control" placeholder="User ID" id="username" name="username" autofocus required>
<input type="password" class="form-control" placeholder="Password" id="password" name="password" required>
<button class="btn btn-lg btn-login btn-block" type="submit">Sign in</button>
</div>
答案 0 :(得分:0)
检查您的型号。下面的代码是模型文件的一个示例。
<?php
Class User extends CI_Model{
function login($username, $password){
$this -> db -> select('id, username, password');
$this -> db -> from('users');
$this -> db -> where('username', $username);
$this -> db -> where('password', MD5($password));
$this -> db -> limit(1);
$query = $this -> db -> get();
if($query -> num_rows() == 1){
return $query->result();
}else{
return false;
}
}
}
?>
这应该有助于我猜。
答案 1 :(得分:0)
请参阅下面的.htacess文件 -
my_func <- function(vector1) 100+vector1
d <- read.table(header=TRUE, text=
'id1 id2 value value2
1 1 0.6 3
1 1 0.7 4
1 1 0.2 9
1 2 0.4 2
1 2 0.5 3
1 2 0.8 4
1 3 0.3 2')
d$v3 <- ave(d$value, d$id1, d$id2, FUN=my_func)