mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-09-26 03:19:00 +02:00
Created dbcon.php
This commit is contained in:
parent
13c3f0bf11
commit
268566044d
1 changed files with 11 additions and 0 deletions
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