Adds membership query endpoint
This commit is contained in:
1 parent
b0ef7061c1
commit
9dfd557974
6 files changed
+118
-12
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user