Answer the question
In order to leave comments, you need to log in
Why is the request hanging?
Is this request hanging up my browser?
public function getByInn($inn): array
{
try {
$limit = 8;
$selectQuery = $this->db->prepare('SELECT * FROM users WHERE inn = :inn LIMIT :limit');
$selectQuery->execute(['limit' => $limit, 'inn' => $inn]);
$row = $selectQuery->fetchAll();
return $row;
} catch (PDOException $e) {
echo $e->getMessage();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question