php8.5
Home/ Manual/ mysqli / mysqli/ mysqli::real_query

mysqli::real_query

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Execute an SQL query

Description

Oop

mysqli::real_query(string $query): bool

Procedural

mysqli_real_query(mysqli $mysql, string $query): bool

Executes a single query against the database whose result can then be retrieved or stored using the mysqli_store_result() or mysqli_use_result() functions.

Warning

In order to determine if a given query should return a result set or not, see mysqli_field_count().

Parameters

query

The query string.

Return Values

Success

Errors/Exceptions Conditionalexception

See Also

Source: reference/mysqli/mysqli/real-query.xml · from the official PHP manual (php/doc-en)