mysqli_stmt
class mysqli_stmt (View source)
Represents a prepared statement.
Properties
int | $affected_rows | ||
int | $insert_id | ||
int | $num_rows | ||
int | $param_count | ||
int | $field_count | ||
int | $errno | ||
string | $error | ||
array | $error_list | ||
string | $sqlstate | ||
string | $id |
Methods
Used to get the current value of a statement attribute
Used to modify the behavior of a prepared statement
Binds variables to a prepared statement as parameters
Binds variables to a prepared statement for result storage
Closes a prepared statement
Seeks to an arbitrary row in statement result set
Executes a prepared statement
Fetch results from a prepared statement into the bound variables
Get result of SHOW WARNINGS
Returns result set metadata from a prepared statement
Check if there are more query results from a multiple query
Reads the next result from a multiple query
Return the number of rows in statements result set
Send data in blocks
No documentation available
Frees stored result memory for the given statement handle
Resets a prepared statement
Prepare an SQL statement for execution
Stores a result set in an internal buffer
Gets a result set from a prepared statement as a mysqli_result object
Details
__construct(mysqli $mysql, string $query)
mysqli_stmt constructor
int
attr_get(int $attribute)
Used to get the current value of a statement attribute
bool
attr_set(int $attribute, int $value)
Used to modify the behavior of a prepared statement
bool
bind_param(string $types, mixed $var1, mixed ...$_)
Binds variables to a prepared statement as parameters
bool
bind_result(mixed $var1, mixed ...$_)
Binds variables to a prepared statement for result storage
bool
close()
Closes a prepared statement
void
data_seek(int $offset)
Seeks to an arbitrary row in statement result set
bool
execute(array|null $params = null)
Executes a prepared statement
bool|null
fetch()
Fetch results from a prepared statement into the bound variables
mysqli_warning|false
get_warnings()
Get result of SHOW WARNINGS
mysqli_result|false
result_metadata()
Returns result set metadata from a prepared statement
bool
more_results()
Check if there are more query results from a multiple query
bool
next_result()
Reads the next result from a multiple query
string|int
num_rows()
Return the number of rows in statements result set
bool
send_long_data(int $param_num, string $data)
Send data in blocks
stmt()
No documentation available
void
free_result()
Frees stored result memory for the given statement handle
bool
reset()
Resets a prepared statement
bool
prepare(string $query)
Prepare an SQL statement for execution
bool
store_result()
Stores a result set in an internal buffer
mysqli_result|false
get_result()
Gets a result set from a prepared statement as a mysqli_result object