This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
inside/snapporder/lib/functions.php
T

19 lines
373 B
PHP

<?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);
?>