K
K
KronosHD2015-10-05 21:52:07
PHP
KronosHD, 2015-10-05 21:52:07

Why doesn't PHP code execute?

//Это не работает и останавливает работу нижнего кода
$email = $_SESSION['email'];
$stmt = $dbh->prepare('SELECT `id` FROM `users` WHERE `email`=?');
$stmt->execute(array($email));
$id = $stmt->fetchColumn(); // индификатор пользователя

//Этот кусок работает:
  // Проверяем данные в запросе
  if (empty($_POST['id']))
  {
    echo "error id";
    exit;
  }
  if (empty($_POST['ball']))
  {
    echo "error ball";
    exit;
  }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Defman21, 2015-10-05
@KronosHD

Psychics on vacation.

S
shaloshvili, 2015-10-05
@shaloshvili

If you find fault with the question, then it can not be executed only in the absence of an interpreter, otherwise, without seeing the picture (the result of the work, logs ...) to say something - it's like fingers in the sky.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question