16 lines
511 B
PHP
16 lines
511 B
PHP
<?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";
|
|
?>
|