mirror of
https://github.com/Ekokumppanit/Lentolaskuri.git
synced 2026-02-04 20:42:44 +00:00
!
This commit is contained in:
20
app/api/config.sample.php
Normal file
20
app/api/config.sample.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
$config = array(
|
||||
'server' => 'localhost',
|
||||
'db' => 'lentolaskuri2',
|
||||
'user' => 'lentolaskuri2',
|
||||
'password' => '8@89z~UIwavn',
|
||||
);
|
||||
|
||||
// ----
|
||||
|
||||
$mysqli = new mysqli($config['server'], $config['user'], $config['password'], $config['db']);
|
||||
|
||||
/* check connection */
|
||||
if (mysqli_connect_errno()) {
|
||||
printf("Connect failed: %s\n", mysqli_connect_error());
|
||||
exit();
|
||||
}
|
||||
Reference in New Issue
Block a user