mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Made OOP-style example consistent, changing procedural calls to OOP. Fixes bug #55119.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312861 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
60760b181d
commit
7ee01a578e
1 changed files with 2 additions and 2 deletions
|
@ -152,8 +152,8 @@
|
|||
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
|
||||
|
||||
/* check connection */
|
||||
if (mysqli_connect_errno()) {
|
||||
printf("Connect failed: %s\n", mysqli_connect_error());
|
||||
if ($mysqli->connect_errno()) {
|
||||
printf("Connect failed: %s\n", $mysqli->connect_error());
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue