M
M
microf2020-05-23 15:36:52
PHP
microf, 2020-05-23 15:36:52

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();
        }
    }

and doesn't give me any errors. The table consists of one line.

PS Everything is fine, I just arranged a recursion in the handler, calling the handler again

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question