mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix #66290 update example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332356 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
483d4d578f
commit
73a0d3a409
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ $db->close();
|
|||
<?php
|
||||
$link = mysqli_connect('localhost', 'my_user', 'my_password', 'my_db');
|
||||
|
||||
if (!$link) {
|
||||
if (mysqli_connect_error()) {
|
||||
die('Connect Error (' . mysqli_connect_errno() . ') '
|
||||
. mysqli_connect_error());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue