U
U
uuuu2021-06-19 23:13:49
PHP
uuuu, 2021-06-19 23:13:49

How to use MySQL connection multiple times?

mysqli_connect() works fine for one query, the next requires it to be reused to make another query.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uuuu, 2021-06-19
@uuuu

this is a problem with Commands out of sync; you can't run this command now
You can't have two simultaneous queries because mysqli uses unbuffered queries by default (for prepared statements; reverse for vanilla mysql_query)
https://www.php.net/manual/en/ mysqli.next-result.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question