mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix example (mysqli::connect_* are properties not methods, doc #55405)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@314798 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
963c4c54c0
commit
29169d2b32
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