folder-structure #9

Merged
vex merged 15 commits from folder-structure into develop 2024-11-18 17:18:38 +00:00
3 changed files with 17 additions and 0 deletions
Showing only changes of commit 937329c9a4 - Show all commits

View File

@ -0,0 +1,17 @@
const mysql = require('mysql');
const connection = mysql.createConnection({
host: "localhost",
user: "root",
password: "root",
database: "webshop"
});
connection.connect(function (err) {
if (err) throw err;
console.log("Connected to database");
connection.query("SELECT * FROM users", function (err, result) {
if (err) throw err;
console.log(result);
})
});