Adds membership query endpoint

This commit is contained in:
nikolark committed 2014-05-11 17:47:48 +02:00
1 parent b0ef7061c1
commit 9dfd557974
6 files changed
+118 -12

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<?php
/* Init */
set_include_path("../includes/");
require_once("../inside/credentials.php");
require_once("../includes/DB.php");
/* Connect db */
$options = array(
'debug' => 2,
'portability' => DB_PORTABILITY_ALL,
);
$db = DB::connect(getDSN(), $options);
if(DB :: isError($conn)) {
echo $conn->toString();
}
$db->setFetchMode(DB_FETCHMODE_ASSOC);
?>