Result::getWarningsGet warnings from last operation Description
public array mysql_xdevapi\Result::getWarnings()
Retrieve warnings from the last Result operation. ParametersThis function has no parameters. Return ValuesAn array of Warning objects from the last operation. Each object defines an error 'message', error 'level', and error 'code'. An empty array is returned if no errors are present. ExamplesExample #1 mysql_xdevapi\RowResult::getWarnings example
The above example will output something similar to: Array ( [0] => mysql_xdevapi\Warning Object ( [message] => Division by 0 [level] => 2 [code] => 1365 ) [1] => mysql_xdevapi\Warning Object ( [message] => Division by 0 [level] => 2 [code] => 1365 ) ) |