Beste php'ers, als ik na het inlogge controleer op de $_POST veriabelen krijg ik in firefox en blanco page en in Opera Verbinding met server verbroken. Maar dit krijg ik enkel als ik de juiste gegevens invoer.
Dit is het stuki script die gebruikt wordt:

<?php

private function reaction(){

$this->db->query("UPDATE players SET active = NOW() WHERE id =
".$this->db->quote($this->user("id"))." ");
}

public function login($username, $password){
$query = $this->db->query("SELECT * FROM players WHERE username = ".$this->db->quote($username)."");
if($this->db->totaal($query) == 1){
$fPlay = $this->db->fetch($query);
if(sha1($password) == $fPlay['password']){

$this->user = $fPlay;
$this->online = TRUE;
$_SESSION['id'] = $fPlay['id'];
$this->reaction();
return TRUE;

}
else{

return FALSE;

}
}
else{

return false;

}
}
?>
De login wordt dus aangeroepen!
Iemand een idee hoe dit komt?

Reageren