(PHP 5 >= 5.1.0, PHP 7, PHP 8)
mysqli::get_warnings — mysqli_get_warnings — Get result of SHOW WARNINGS
Description
Object-oriented style
Procedural style
Returns a singly linked list comprised of mysqli_warning or false if there are no warnings. Each object in the list corresponds to a single line from the result of SHOW WARNINGS. Calling mysqli_warning::next() will refill the object with the values from the next row.
Note: To retrieve warning messages, it is recommended to use the SQL command SHOW WARNINGS [limit row_count] instead of this function.
Warning
The linked list cannot be rewound or retrieved again.