Skip to content

Commit 1ac126b

Browse files
authored
remove parameter passed in mysqli_connect_errno()
mysqli_connect_errno() has no parameter per https://www.php.net/manual/en/mysqli.connect-errno.php
1 parent 2bbd1a6 commit 1ac126b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/mysql/flexible-server/how-to-connect-tls-ssl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ define('MYSQL_SSL_CERT','/FULLPATH/on-client/to/DigiCertGlobalRootCA.crt.pem');
190190
$conn = mysqli_init();
191191
mysqli_ssl_set($conn,NULL,NULL, "/var/www/html/DigiCertGlobalRootCA.crt.pem", NULL, NULL);
192192
mysqli_real_connect($conn, 'mydemoserver.mysql.database.azure.com', 'myadmin', 'yourpassword', 'quickstartdb', 3306, MYSQLI_CLIENT_SSL);
193-
if (mysqli_connect_errno($conn)) {
193+
if (mysqli_connect_errno()) {
194194
die('Failed to connect to MySQL: '.mysqli_connect_error());
195195
}
196196
```

0 commit comments

Comments
 (0)