mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Use object in OO example
-- Patch by anonymous #45313 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333769 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e22c33c1ae
commit
fd05093add
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,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