diff options
Diffstat (limited to 'scripts/vendorid/connect.php')
-rw-r--r-- | scripts/vendorid/connect.php | 23 |
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 |