incomprehensible error
stuchin opened this issue · comments
stuchin commented
part of my code:
$email = "proba@proba.ru";
$user_count = $collection->find(function($query){ $query->where('email', $email);
});
and I get the error
notice
Fuel\Core\PhpErrorException [ Notice ]: Undefined variable: email
where I was wrong?
Frank de Jonge commented
$user_count = $collection->find(function($query) use ($email) { $query->where('email', $email); } );
👯