mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-05-17 19:13:48 +02:00
Created dbcon.php
This commit is contained in:
parent
13c3f0bf11
commit
268566044d
11
website/dbcon.php
Normal file
11
website/dbcon.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
include "config.php";
|
||||
$con = mysqli_connect(SQLHost, SQLUser, SQLPasswort, SQLDatenbank);
|
||||
|
||||
// Check connection
|
||||
if (mysqli_connect_errno())
|
||||
{
|
||||
echo "<b style='color: #9c4b4b; text-decoration: underline;'>Failed to connect to <i >" .$SQLHost."</i> </b> :: " . mysqli_connect_error();
|
||||
}
|
||||
?>
|
Loading…
Reference in a new issue