ehh.. no nadal nie moge załapać... dodałem parametr do bindPadam i nadal nie działa, pytanie - czy bez bindParam ten kod nie jest wystarczająco bezpieczny?
public function login($login, $password) {
include("language/pl.php");
if (!empty($_POST['spr'])) { $this->login = $login;
$this->password = md5($password); $this->check_date = $this->pdo->prepare("SELECT * FROM users WHERE mail=? AND haslo=? LIMIT 1");
$this->check_date->execute(array(bindParam
($this->login, $this->password, PDO
::PARAM_STR, 12
))); $this->check = $this->check_date->fetchAll(PDO::FETCH_ASSOC);
if (!empty($this->check)) { $_SESSION['reyblau_login']=$this->login;
header("Location: index.php"); } else { return $lang[3]; }