如果我的代码或数据库有什么问题?
我的代码
if(isset($login)){
if($sbg=='administrator'){
$login = mysql_query("SELECT * FROM administrator WHERE email='$email' AND password='$pass'");
$rows= mysql_num_rows($login);
if($rows==0){
$data = mysql_fetch_array($login);
$_SESSION['login'] = true;
$_SESSION['nama'] = $data['nama'];
$_SESSION['email'] = $data['email'];
$_SESSION['password'] = $data['password'];
}else{