Initial commit
This commit is contained in:
15
indexes/ConnectDB.php
Normal file
15
indexes/ConnectDB.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$servername = "localhost"; // if use uic server, change to stuweb.bcrab.cn
|
||||
$username = "swdw"; // change to your account
|
||||
$password = "MbMXJSxXZbzJ3aZc"; // change to your account
|
||||
$db = "swdw"; // change to your database name
|
||||
|
||||
// Create connection
|
||||
$conn = new mysqli($servername, $username, $password, $db);
|
||||
|
||||
// Check connection
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
//echo "Connected successfully";
|
||||
?>
|
||||
Reference in New Issue
Block a user