Skip to content

Instantly share code, notes, and snippets.

View math-alpha's full-sized avatar
🏠
Working from home

Ngadou Yopa math-alpha

🏠
Working from home
View GitHub Profile
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>Firebase sample</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="index.js"></script>
</head>
<body style="max-height: 1vh">
<br><br><br><br><br>
// connection code
<?php
$dbName = $_SERVER["DOCUMENT_ROOT"] . "products\products.mdb";
if (!file_exists($dbName)) {
die("Could not find database file.");
}
$db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$dbName; Uid=; Pwd=;");
// sample query code
<?php
package main
import (
"encoding/json"
"github.com/gorilla/mux"
"log"
"net/http"
)
// The person Type (more like an object)