Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
MySQLi
Overview
Quick start guide
Installing/Configuring
The mysqli Extension and Persistent Connections
Predefined Constants
mysqli
mysqli_stmt
mysqli_result
mysqli_driver
mysqli_warning
mysqli_sql_exception
MySQLi Functions
Changelog
mysqli_driver::$report_mode
mysqli_warning::__construct
MySQLi
Last updated: Mon, 26 Oct 2026
The mysqli_warning class
(PHP 5, PHP 7, PHP 8)
Introduction
Represents a MySQL warning.
Class synopsis
final
class
mysqli_warning
{
/* Properties */
public
string
$
message
;
public
string
$
sqlstate
;
public
int
$
errno
;
/* Methods */
private
function
__construct
()
public
function
next
():
bool
}
Properties
message
Message string
sqlstate
SQL state
errno
Error number
Table of Contents
mysqli_warning::__construct
— Private constructor to disallow direct instantiation
mysqli_warning::next
— Fetch next warning
mysqli_driver::$report_mode
mysqli_warning::__construct
MySQLi
Last updated: Mon, 26 Oct 2026