Hu: Here’s my template db-conn<Hu-Github, a-r>:
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "flare-db";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
} else {
// echo "Connection successful!";
}
// echo 'test';
?>
Presently, the $servername is set to localhost. However, if I can traverse this to a web-IP, then I can make SQL-writes, across the internet<Turing-dirty>; with this, comes the ability to reset GET-polling to local<Turing.dirty-2>
References:
https://github.com/yakun-hu/flare/blob/main/my.sql-inc/db.conn-inc.php