aboutsummaryrefslogtreecommitdiff
path: root/scripts/vendorid/connect.php
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-16 11:50:59 +1000
committerYuchen Pei <hi@ypei.me>2022-09-16 11:50:59 +1000
commit997db7f09c1f159b531fc804aacf3c5ca1208d87 (patch)
tree79be54d60b1edb9f1321b4061ef83c0e81b32fcf /scripts/vendorid/connect.php
parent410a096a1a288ee4d5b41436d2e2530658453c74 (diff)
Revert "Removing scripts subdir"
This reverts commit 22bbfe0e2e0ddb0ccaafe888446f2f59a9ab4e2f.
Diffstat (limited to 'scripts/vendorid/connect.php')
-rw-r--r--scripts/vendorid/connect.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/vendorid/connect.php b/scripts/vendorid/connect.php
new file mode 100644
index 0000000..cb078be
--- /dev/null
+++ b/scripts/vendorid/connect.php
@@ -0,0 +1,23 @@
+<?php
+
+//created by Antonio Gallo (tonicucoz@yahoo.com)
+// this script is in the Public Domain
+
+$host = '';
+$user = '';
+$password = '';
+$dbName = '';
+
+class DB
+{
+ public static $instance;
+}
+
+DB::$instance = new mysqli($host,$user,$password,$dbName);
+
+if (mysqli_connect_error())
+{
+ die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error());
+}
+
+?> \ No newline at end of file