K
K
kpa6uu2016-03-01 18:10:06
PHP
kpa6uu, 2016-03-01 18:10:06

Is it possible to use multiple prepared queries?

Good day. I'm trying to use two prepared queries
$mysqli->prepare
To optimize the work with the database.
Unfortunately, an error is thrown

Commands out of sync; you can't run this command now

Actually - a subject. Is it possible to use two prepared queries, or only one at the most? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2016-03-01
@kpa6uu

Fulfilled the request - closed it, prepared another one - fulfilled it - closed it, and so on.
All the same, after all, they are sequentially executed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question