go to bug id or search bugs for
The article http://php.net/manual/en/mysqlinfo.api.choosing.php "Choosing an API [to access MySQL server]" has incorrect code examples that can mislead users.
First, there is no error handling. In real world examples, of course, error handling is required. For PDO, this can be solved with one line, enabling exceptions (although my personal opinion is that this mode should be teh default). But for mysqli, the error handling should be made explicitly by adding if operator after every method call.
Also, the code examples should have at least one argument inserted via placeholders. In real world code almost all queries will have parameters and it is important to show that parameters are easier to insert using PDO.
I can correct the code examples using edit.php.net if this change is approved.
I would also like to add a line "supports exceptions" to API comparison table.
Add a Patch
Add a Pull Request