← All docs

mysqli_query()

Runs one statement and returns a result set or a success flag.

mysqli_query()

function mysqli_query(mixed $mysql, string $query, int $result_mode = 0): mixed

Runs one statement and returns a result set or a success flag.

Parameters:

  • $mysql (mixed)
  • $query (string)
  • $result_mode (int), default 0, optional

Returns: mixed

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mysqli_query is implemented in the compiler, see the internals page.