Pdo\Mysql::getWarningCountReturns the number of warnings from the last executed query Description
public int Pdo\Mysql::getWarningCount()
Returns the number of warnings from the last executed query.
ParametersThis function has no parameters. Return ValuesReturns an int representing the number of warnings generated by the last query. ExamplesExample #1 Pdo\Mysql::getWarningCount example
The above example will output: Warning (1365): Division by 0 |