mysqli_sqlstate
Supported Versions: PHP 5, PHP 7, PHP 8
Returns the SQLSTATE error from previous MySQL operation
<?php mysqli_sqlstate
(
mysqli $mysql
):
string