fork download
  1. <?php
  2. $dbPrepared = $database-db->prepare("SELECT * FROM users WHERE email=?");
  3. $dbPrepared->execute(array($email));
  4. $correspondence = $dbPrepared->fetch();
  5. if (!empty($correspondence)) {
  6. //Не подходит
  7. } else {
  8. //Подходит
  9. }
Runtime error #stdin #stdout #stderr 0.01s 20592KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/HV7qIJ/prog.php on line 2