Skip to content

Commit 695fac6

Browse files
committed
Minor updates to the example
1 parent 54df4c7 commit 695fac6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

examples/credentials.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
'username' => '',
66
'password' => '',
77
'database' => '',
8+
'port' => '',
9+
'socket' => '',
10+
'flags' => 0,
811
];

examples/example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
$db->debug_ajax = '../update-debug-info.php';
3434

3535
// connect to the MySQL server and select the database
36-
$db->connect($credentials['host'], $credentials['username'], $credentials['password'], $credentials['database']);
36+
$db->connect($credentials['host'], $credentials['username'], $credentials['password'], $credentials['database'], $credentials['port'], $credentials['socket'], false, $credentials['flags']);
3737

3838
$db->set_charset();
3939

0 commit comments

Comments
 (0)