This commit is contained in:
Juho Teperi
2013-05-15 09:36:03 +03:00
parent 23f27ced27
commit 8936480bce
10 changed files with 153 additions and 68 deletions

20
app/api/config.sample.php Normal file
View 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();
}