-----------------
Amersfoort
Maastricht
Dordrecht
Leiden
Haarlemmermeer
See Also
mysqli_real_query
mysqli_store_result
20.7.3.9.60. mysqli::$warning_count,
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqli::$warning_count
mysqli_warning_count
Returns the number of warnings from the last query for the given link
Description
Object oriented style
int
mysqli->warning_count ;
Procedural style
int mysqli_warning_count(
mysqli link);
Returns the number of warnings from the last query in the connection.
Parameters
link
Return Values
Number of warnings or zero if there are no warnings.
Examples
Example 20.148.
Object oriented style
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* check connection */
MySQL Improved Extension (Mysqli)
mysqli_warning_count
Note
For retrieving warning messages you can use the SQL command
WARNINGS [limit
row_count].
Procedural style only: A link identifier returned by
mysqli_connect
$mysqli->warning_count
or
mysqli_init
example
2433
SHOW
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers